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 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
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…
Reference in New Issue