mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 22:55:45 +00:00
don't log severe with stack trace on normal amqp shutdown
This commit is contained in:
@@ -256,7 +256,11 @@ public class AMQPUrlReceiver implements Lifecycle, ApplicationListener<CrawlStat
|
||||
@Override
|
||||
public void handleShutdownSignal(String consumerTag,
|
||||
ShutdownSignalException sig) {
|
||||
logger.log(Level.SEVERE, "amqp channel/connection shut down consumerTag=" + consumerTag, sig);
|
||||
if (!sig.isInitiatedByApplication()) {
|
||||
logger.log(Level.SEVERE, "amqp channel/connection unexpectedly shut down consumerTag=" + consumerTag, sig);
|
||||
} else {
|
||||
logger.info("amqp channel/connection shut down consumerTag=" + consumerTag);
|
||||
}
|
||||
isRunning = false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user