Skip to content

Commit 4219359

Browse files
committed
Change connection-closed log message to debug
Previously it was info, and it's the only connection pool-related log message at that high a level. JAVA-4189
1 parent 1c825e3 commit 4219359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver-core/src/main/com/mongodb/internal/connection/DefaultConnectionPool.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -535,8 +535,8 @@ public UsageTrackingInternalConnection create(final boolean initialize) {
535535
@Override
536536
public void close(final UsageTrackingInternalConnection connection) {
537537
connectionPoolListener.connectionRemoved(new ConnectionRemovedEvent(getId(connection), getReasonForClosing(connection)));
538-
if (LOGGER.isInfoEnabled()) {
539-
LOGGER.info(format("Closed connection [%s] to %s because %s.", getId(connection), serverId.getAddress(),
538+
if (LOGGER.isDebugEnabled()) {
539+
LOGGER.debug(format("Closed connection [%s] to %s because %s.", getId(connection), serverId.getAddress(),
540540
getReasonStringForClosing(connection)));
541541
}
542542
connection.close();

0 commit comments

Comments
 (0)