Skip to content

Commit

Permalink
Update inlong-agent/agent-plugins/src/main/java/org/apache/inlong/age…
Browse files Browse the repository at this point in the history
…nt/plugin/sources/SQLSource.java

Co-authored-by: AloysZhang <[email protected]>
  • Loading branch information
justinwwhuang and aloyszhang authored Dec 30, 2024
1 parent d85d7fe commit b2171aa
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit b2171aa

Please sign in to comment.