Skip to content

Commit f4a13ce

Browse files
author
Corentin Chary
committedApr 25, 2017
Suppress all kinds of Throwables raised by report()
See dropwizard#1049
1 parent 8b2277f commit f4a13ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎metrics-core/src/main/java/com/codahale/metrics/ScheduledReporter.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ synchronized public void start(long initialDelay, long period, TimeUnit unit) {
172172
public void run() {
173173
try {
174174
report();
175-
} catch (Exception ex) {
175+
} catch (Throwable ex) {
176176
LOG.error("Exception thrown from {}#report. Exception was suppressed.", ScheduledReporter.this.getClass().getSimpleName(), ex);
177177
}
178178
}

0 commit comments

Comments
 (0)
Please sign in to comment.