mirror of
https://github.com/apache/httpcomponents-client.git
synced 2025-02-27 21:29:12 +00:00
isDebugEnabled can only be true if isInfoEnabled is true, so don't perform a useless check
Also might as well merge the other log.info into the block git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1174784 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
04626cb5ed
commit
47c6fa809f
@ -584,11 +584,11 @@ private void tryConnect(
|
||||
this.log.info("I/O exception ("+ ex.getClass().getName() +
|
||||
") caught when connecting to the target host: "
|
||||
+ ex.getMessage());
|
||||
if (this.log.isDebugEnabled()) {
|
||||
this.log.debug(ex.getMessage(), ex);
|
||||
}
|
||||
this.log.info("Retrying connect");
|
||||
}
|
||||
if (this.log.isDebugEnabled()) {
|
||||
this.log.debug(ex.getMessage(), ex);
|
||||
}
|
||||
this.log.info("Retrying connect");
|
||||
} else {
|
||||
throw ex;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user