Skip to content

Commit

Permalink
[apache#1267][FOLLOWUP] improvement(client): INFO log level should be…
Browse files Browse the repository at this point in the history
… used in RetryUtils
  • Loading branch information
rickyma committed Feb 1, 2024
1 parent 464553e commit 08041a4
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,14 @@ public static <T> T retryWithCondition(
retry++;
if (isRetryFunc.apply(t) && retry < retryTimes) {
if (LOG.isDebugEnabled()) {
LOG.error("Retry due to Throwable ", t);
LOG.info("Retry due to Throwable ", t);
} else {
LOG.error(
LOG.info(
"Retry due to Throwable {}. Use DEBUG level to see the full stack: {}",
t.getClass().getName(),
t.getMessage());
}
LOG.error(
LOG.info(
"Will retry {} more time(s) after waiting {} milliseconds.",
retryTimes - retry,
intervalMs);
Expand Down

0 comments on commit 08041a4

Please sign in to comment.