diff --git a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/SQLSource.java b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/SQLSource.java index 02e229895b..8dcf552182 100755 --- a/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/SQLSource.java +++ b/inlong-agent/agent-plugins/src/main/java/org/apache/inlong/agent/plugin/sources/SQLSource.java @@ -140,11 +140,8 @@ private void initConn() throws SQLException { throw new SQLException( "Failed to connect database after retry " + retryTimes + " times.", e); } - LOGGER.warn( - "Reconnect database after " - + RECONNECT_INTERVAL_SECOND - + " seconds due to the following error: " - + e.getMessage()); + LOGGER.warn("Connect Reconnect database after {} seconds due to the following error: {}", + RECONNECT_INTERVAL_SECOND, e.getMessage()); AgentUtils.silenceSleepInSeconds(RECONNECT_INTERVAL_SECOND); } }