Skip to content

Commit 11f2fcb

Browse files
authored
Change connection-closed log message to debug (#728)
Previously it was info, and it's the only connection pool-related log message at that high a level. JAVA-4189
1 parent eefaa2f commit 11f2fcb

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
@@ -735,8 +735,8 @@ public void close(final UsageTrackingInternalConnection connection) {
735735
}
736736
} else {
737737
connectionClosed(connectionPoolListener, getId(connection), getReasonForClosing(connection));
738-
if (LOGGER.isInfoEnabled()) {
739-
LOGGER.info(format("Closed connection [%s] to %s because %s.", getId(connection), serverId.getAddress(),
738+
if (LOGGER.isDebugEnabled()) {
739+
LOGGER.debug(format("Closed connection [%s] to %s because %s.", getId(connection), serverId.getAddress(),
740740
getReasonStringForClosing(connection)));
741741
}
742742
}

0 commit comments

Comments
 (0)