Slightly more intelligible debug log
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@748827 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2e4ab52fd5
commit
25ff7db458
|
@ -456,7 +456,11 @@ public class DefaultRequestDirector implements RequestDirector {
|
|||
managedConn.setIdleDuration(duration, TimeUnit.MILLISECONDS);
|
||||
|
||||
if (this.log.isDebugEnabled()) {
|
||||
this.log.debug("Connection can be kept alive for " + duration + " ms");
|
||||
if (duration >= 0) {
|
||||
this.log.debug("Connection can be kept alive for " + duration + " ms");
|
||||
} else {
|
||||
this.log.debug("Connection can be kept alive indefinitely");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue