Skip to content

Commit

Permalink
Logging stacktrace for the exception if MetricValidation failed for e…
Browse files Browse the repository at this point in the history
…ach retry (#135)

This change logs stacktrace of the failed attempt in warning level, so operator will see the missing metric even after one retry.
  • Loading branch information
jerry-shao authored Jul 30, 2024
1 parent 196a960 commit 62c471c
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public static boolean retry(
return true;
} catch (Exception ex) {
exceptionInTheEnd = ex;
log.warn(ex);
if (retryCount != 0) { // don't sleep before leave this loop
log.info(
"retrying after {} seconds", TimeUnit.MILLISECONDS.toSeconds(sleepInMilliSeconds));
Expand Down

0 comments on commit 62c471c

Please sign in to comment.