From b62e3ca6fd63203d10ac0c03859c33cff185a45b Mon Sep 17 00:00:00 2001 From: wudi <676366545@qq.com> Date: Fri, 23 Feb 2024 10:42:36 +0800 Subject: [PATCH] update --- .../main/java/org/apache/doris/flink/sink/BackendUtil.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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();