Skip to content

Commit 2c03ae7

Browse files
committed
Make default logging setting deactivated
This update objective is to align the default logging setting with other Neo4j drivers. Users can change the level according to their needs.
1 parent adc0e18 commit 2c03ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

driver/src/main/java/org/neo4j/driver/Config.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
import org.neo4j.driver.util.Immutable;
3535

3636
import static java.lang.String.format;
37-
import static org.neo4j.driver.Logging.javaUtilLogging;
37+
import static org.neo4j.driver.internal.logging.DevNullLogging.DEV_NULL_LOGGING;
3838

3939
/**
4040
* A configuration class to config driver properties.
@@ -269,7 +269,7 @@ public String userAgent()
269269
*/
270270
public static class ConfigBuilder
271271
{
272-
private Logging logging = javaUtilLogging( Level.INFO );
272+
private Logging logging = DEV_NULL_LOGGING;
273273
private boolean logLeakedSessions;
274274
private int maxConnectionPoolSize = PoolSettings.DEFAULT_MAX_CONNECTION_POOL_SIZE;
275275
private long idleTimeBeforeConnectionTest = PoolSettings.DEFAULT_IDLE_TIME_BEFORE_CONNECTION_TEST;

0 commit comments

Comments
 (0)