Log the top-level exception name and message when crawling badness happens.

This commit is contained in:
Jon Chambers 2020-08-05 11:17:07 -04:00 committed by Jon Chambers
parent e7d3ee3bc8
commit 178a6bd66e
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class AccountDatabaseCrawler implements Managed, Runnable {
accelerated = doPeriodicWork();
sleepWhileRunning(accelerated ? ACCELERATED_CHUNK_INTERVAL : chunkIntervalMs);
} catch (Throwable t) {
logger.warn("error in database crawl: ", t);
logger.warn("error in database crawl: {}: {}", t.getClass().getSimpleName(), t.getMessage(), t);
Util.sleep(10000);
}
}