Skip to content

Commit 9585171

Browse files
committed
Tweak(): Add an error log when an error occurred during a ping for clientv2
1 parent b8a3984 commit 9585171

File tree

1 file changed

+1
-0
lines changed
  • client-v2/src/main/java/com/clickhouse/client/api

1 file changed

+1
-0
lines changed

client-v2/src/main/java/com/clickhouse/client/api/Client.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,6 +1035,7 @@ public boolean ping(long timeout) {
10351035
try (QueryResponse response = query("SELECT 1 FORMAT TabSeparated").get(timeout, TimeUnit.MILLISECONDS)) {
10361036
return true;
10371037
} catch (Exception e) {
1038+
LOG.debug("Failed to connect to the server", e);
10381039
return false;
10391040
}
10401041
} else {

0 commit comments

Comments
 (0)