Skip to content

Commit c8beb97

Browse files
author
Zhen Li
committed
Improved error message in leaked session detection to reflect the changes to the resource management in driver.
1 parent ba9ba0f commit c8beb97

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/internal/LeakLoggingNetworkSession.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ private void logLeakIfNeeded()
4848
Boolean isOpen = Futures.blockingGet( currentConnectionIsOpen() );
4949
if ( isOpen )
5050
{
51-
logger.error( "Neo4j Session object leaked, please ensure that your application" +
52-
"calls the `close` method on Sessions before disposing of the objects.\n" +
51+
logger.error( "Neo4j Session object leaked, please ensure that your application " +
52+
"fully consumes results in Sessions or explicitly calls `close` on Sessions before disposing of the objects.\n" +
5353
"Session was create at:\n" + stackTrace, null );
5454
}
5555
}

0 commit comments

Comments
 (0)