Skip to content

Commit 62c471c

Browse files
authored
Logging stacktrace for the exception if MetricValidation failed for each retry (#135)
This change logs stacktrace of the failed attempt in warning level, so operator will see the missing metric even after one retry.
1 parent 196a960 commit 62c471c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

validator/src/main/java/com/amazon/aoc/helpers/RetryHelper.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ public static boolean retry(
4242
return true;
4343
} catch (Exception ex) {
4444
exceptionInTheEnd = ex;
45+
log.warn(ex);
4546
if (retryCount != 0) { // don't sleep before leave this loop
4647
log.info(
4748
"retrying after {} seconds", TimeUnit.MILLISECONDS.toSeconds(sleepInMilliSeconds));

0 commit comments

Comments
 (0)