Skip to content

Commit a9c4cb4

Browse files
author
Hunter
committed
Merge pull request #130 from nlevitt/stay-alive-statistics-tracker
catch exceptions and log error in StatisticsTracker.run(), to make su…
2 parents 98d4105 + 11d4bab commit a9c4cb4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

engine/src/main/java/org/archive/crawler/reporting/StatisticsTracker.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,11 @@ public void start() {
416416
*
417417
*/
418418
public void run() {
419-
progressStatisticsEvent();
419+
try {
420+
progressStatisticsEvent();
421+
} catch (Throwable e) {
422+
logger.log(Level.SEVERE, "unexpected exception from progressStatisticsEvent()", e);
423+
}
420424
}
421425

422426
/**

0 commit comments

Comments
 (0)