Skip to content

Commit

Permalink
Update HttpClientUtil.java
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesPeck authored Mar 6, 2024
1 parent 0b4da5f commit cf9855a
Showing 1 changed file with 1 addition and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,7 @@ public static JsonNode simplePost(String uri, StringEntity requestBody, HttpClie
ex.printStackTrace();
logger.error("simplePost() Exception: {}, cannot parse content from by POST from url: {}", ex,
uri);
StackTraceElement[] stackTraceElements = e2.getStackTrace();
try {
String logMessage = "IOException occured in method "
+ stackTraceElements[0].getMethodName() + " - File name is "
+ stackTraceElements[0].getFileName()
+ " - At line number: "
+ stackTraceElements[0].getLineNumber();
logger.error(logMessage);
} catch (Exception e) {
logger.error(e);
}
logger.error("simplePost()", ex);
throw new ApplicationException("Inner problem, please contact system admin and check the server log");
}
}
Expand Down

0 comments on commit cf9855a

Please sign in to comment.