Skip to content

Commit

Permalink
Fix logging level in AmazonHttpClient
Browse files Browse the repository at this point in the history
Need to log at debug level if checking isDebugEnabled, please. (Ended up lowering my logging level to trace to continue my work)
  • Loading branch information
kyuriosity authored and debora-ito committed Apr 29, 2020
1 parent 58f4e3a commit 6e45bb8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1212,7 +1212,7 @@ private void handleRetryableException(ExecOneRequestParams execOneParams, Except
if (log.isTraceEnabled()) {
log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""), e);
} else if (log.isDebugEnabled()) {
log.trace(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""));
log.debug(sdkClientException.getMessage() + (willRetry ? " Request will be retried." : ""));
}
if (!willRetry) {
throw lastReset(sdkClientException);
Expand Down

0 comments on commit 6e45bb8

Please sign in to comment.