Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sebr72 committed Dec 18, 2024
1 parent fcac103 commit fa5df1d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,14 @@ private static CloseableHttpClient createHttpClient(
.setMaxConnTotal(maxConnTotal)
.setMaxConnPerRoute(maxConnPerRoute)
.setUserAgent(UserAgentCreator.getUserAgent());
return httpClientBuilder.build();
CloseableHttpClient closeableHttpClient = httpClientBuilder.build();
LOGGER.debug(
"Created CloseableHttpClient using connectionRequestTimeout: {} connectTimeout: {}"
+ " socketTimeout: {}",
getIntProperty("http.connectionRequestTimeout"),
getIntProperty("http.connectTimeout"),
getIntProperty("http.socketTimeout"));
return closeableHttpClient;
}

// allow extension only for testing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ public HttpMethod getMethod() {
@Override
public String getMethodValue() {
final HttpMethod method = httpRequest.getMethod();
assert method != null;
return method.name();
}

Expand Down

0 comments on commit fa5df1d

Please sign in to comment.