Skip to content

Commit 0a7b9de

Browse files
authored
Merge pull request #1803 from alxhill/ah/reduce-logging
Use debug logging for internal connection details
2 parents 12f5edf + 2bcca98 commit 0a7b9de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clickhouse-http-client/src/main/java/com/clickhouse/client/http/ApacheHttpConnectionImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ private CloseableHttpClient newConnection(ClickHouseConfig c) throws IOException
9595
}
9696

9797
long connectionTTL = config.getLongOption(ClickHouseClientOption.CONNECTION_TTL);
98-
log.info("Connection TTL: %d ms", connectionTTL);
98+
log.debug("Connection TTL: %d ms", connectionTTL);
9999
String poolReuseStrategy = c.getStrOption(ClickHouseHttpOption.CONNECTION_REUSE_STRATEGY);
100100
PoolReusePolicy poolReusePolicy = PoolReusePolicy.LIFO;
101101
if (poolReuseStrategy != null && !poolReuseStrategy.isEmpty()) {
@@ -105,7 +105,7 @@ private CloseableHttpClient newConnection(ClickHouseConfig c) throws IOException
105105
throw new IllegalArgumentException("Invalid connection reuse strategy: " + poolReuseStrategy);
106106
}
107107
}
108-
log.info("Connection reuse strategy: %s", poolReusePolicy.name());
108+
log.debug("Connection reuse strategy: %s", poolReusePolicy.name());
109109
HttpConnectionManager connManager = new HttpConnectionManager(r.build(), c, PoolConcurrencyPolicy.LAX,
110110
poolReusePolicy, TimeValue.ofMilliseconds(connectionTTL));
111111
int maxConnection = config.getIntOption(ClickHouseHttpOption.MAX_OPEN_CONNECTIONS);

0 commit comments

Comments
 (0)