Skip to content

Commit ea30251

Browse files
authored
Merge pull request #595 from darkorcar/darkorcar-patch-1
Fix idleTooLong trace massage
2 parents ff9e61b + a3b1fdf commit ea30251

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

driver/src/main/java/org/neo4j/driver/internal/async/pool/NettyChannelHealthChecker.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ private boolean hasBeenIdleForTooLong( Channel channel )
9292
long idleTime = clock.millis() - lastUsedTimestamp;
9393
boolean idleTooLong = idleTime > poolSettings.idleTimeBeforeConnectionTest();
9494

95-
log.trace( "Channel %s has been idle for %s and needs a ping", channel, idleTime );
95+
if ( idleTooLong )
96+
{
97+
log.trace( "Channel %s has been idle for %s and needs a ping", channel, idleTime );
98+
}
9699

97100
return idleTooLong;
98101
}

0 commit comments

Comments
 (0)