Skip to content

Commit 4c8f409

Browse files
committed
Fix log error message
1 parent 9776f6e commit 4c8f409

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

driver/src/main/java/org/neo4j/driver/internal/cluster/LoadBalancer.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@
3232
import org.neo4j.driver.v1.exceptions.ProtocolException;
3333
import org.neo4j.driver.v1.exceptions.ServiceUnavailableException;
3434

35-
import static java.lang.String.format;
36-
3735
public class LoadBalancer implements ConnectionProvider, RoutingErrorHandler, AutoCloseable
3836
{
3937
private static final String LOAD_BALANCER_LOG_NAME = "LoadBalancer";
@@ -94,7 +92,6 @@ public void close() throws Exception
9492
connections.close();
9593
}
9694

97-
// todo: why servers are mixed up here? see shouldReceiveBookmark...
9895
private PooledConnection acquireConnection( RoundRobinAddressSet servers ) throws ServiceUnavailableException
9996
{
10097
for ( ; ; )
@@ -109,10 +106,7 @@ private PooledConnection acquireConnection( RoundRobinAddressSet servers ) throw
109106
}
110107
catch ( ServiceUnavailableException e )
111108
{
112-
// todo: this log message is wrong
113-
log.error( format( "Failed to refresh routing information using routing address %s",
114-
address ), e );
115-
109+
log.error( "Failed to obtain a connection towards address " + address, e );
116110
forget( address );
117111
}
118112
}

0 commit comments

Comments
 (0)