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:
Sebastian Bazley 2011-09-23 14:07:26 +00:00
parent 04626cb5ed
commit 47c6fa809f
1 changed files with 4 additions and 4 deletions

View File

@ -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;
}