Skip to content

Commit 64c6f3b

Browse files
Aditya JoshiAditya Joshi
authored andcommitted
refactored logs
1 parent d20f4a4 commit 64c6f3b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/main/java/io/github/lambdatest/utils/HttpClientUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ private String delete(String url,Map<String, String> headers) throws IOException
7373
return entity != null ? EntityUtils.toString(entity) : null;
7474
}
7575
catch (Exception e){
76-
log.log(Level.WARNING, "Exception occurred in delete", e);
77-
throw e;
76+
log.warning("Exception occurred in Delete" + e);
77+
throw e;
7878
}
7979
}
8080

src/main/java/io/github/lambdatest/utils/SmartUIUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public boolean isSmartUIRunning() {
2525
httpClient.isSmartUIRunning();
2626
return true;
2727
} catch (Exception e) {
28-
log.log(Level.SEVERE, "An error occurred", e);
28+
log.severe("Exception occurred " + e);
2929
return false;
3030
}
3131
}

0 commit comments

Comments
 (0)