INT-1797 Polish trace log entry

This commit is contained in:
Gary Russell
2011-02-20 15:51:19 -05:00
parent 2ddbf35cfb
commit 73e31e52ea

View File

@@ -384,8 +384,13 @@ public abstract class AbstractConnectionFactory
}
}
}
if (logger.isTraceEnabled())
logger.trace("Host " + this.host + " port " + this.port + " SelectionCount: " + selectionCount);
if (logger.isTraceEnabled()) {
if (host == null) {
logger.trace("Port " + this.port + " SelectionCount: " + selectionCount);
} else {
logger.trace("Host " + this.host + " port " + this.port + " SelectionCount: " + selectionCount);
}
}
if (selectionCount > 0) {
Set<SelectionKey> keys = selector.selectedKeys();
Iterator<SelectionKey> iterator = keys.iterator();