Skip to content

Commit 980dc18

Browse files
author
Rob Schoening
committed
fix memory leak with logger
1 parent acae911 commit 980dc18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public NetworkSession( ConnectionProvider connectionProvider, AccessMode mode, R
6464
this.connectionProvider = connectionProvider;
6565
this.mode = mode;
6666
this.retryLogic = retryLogic;
67-
this.logger = logging.getLog( "Session-" + hashCode() );
67+
this.logger = logging.getLog(Session.class.getName());
6868
}
6969

7070
@Override

driver/src/main/java/org/neo4j/driver/internal/net/SocketConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public class SocketConnection implements Connection
5757

5858
SocketConnection( BoltServerAddress address, SecurityPlan securityPlan, int timeoutMillis, Logging logging )
5959
{
60-
Logger logger = logging.getLog( "Connection-" + hashCode() );
60+
Logger logger = logging.getLog( Connection.class.getName() );
6161
this.socket = new SocketClient( address, securityPlan, timeoutMillis, logger );
6262
this.responseHandler = createResponseHandler( logger );
6363

0 commit comments

Comments
 (0)