diff --git a/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/BackendUtil.java b/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/BackendUtil.java index 64ddc6400..cb5b6f2ae 100644 --- a/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/BackendUtil.java +++ b/flink-doris-connector/src/main/java/org/apache/doris/flink/sink/BackendUtil.java @@ -89,7 +89,9 @@ public String getAvailableBackend() { public static boolean tryHttpConnection(String host) { try { - LOG.debug("try to connect host {}", host); + if (LOG.isDebugEnabled()) { + LOG.debug("try to connect host {}", host); + } host = "http://" + host; URL url = new URL(host); HttpURLConnection co = (HttpURLConnection) url.openConnection();