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:
Oleg Kalnichevski 2009-02-28 12:04:44 +00:00
parent 2e4ab52fd5
commit 25ff7db458
1 changed files with 5 additions and 1 deletions

View File

@ -456,7 +456,11 @@ public class DefaultRequestDirector implements RequestDirector {
managedConn.setIdleDuration(duration, TimeUnit.MILLISECONDS);
if (this.log.isDebugEnabled()) {
if (duration >= 0) {
this.log.debug("Connection can be kept alive for " + duration + " ms");
} else {
this.log.debug("Connection can be kept alive indefinitely");
}
}
}