suppress asyncio message always on restart or shutdown

This commit is contained in:
Ozzie Isaacs 2021-02-08 20:39:03 +01:00
parent 5dac13b1da
commit cefdd2f66c

View File

@ -251,10 +251,11 @@ class WebServer(object):
finally:
self.wsgiserver = None
# prevent irritiating log of pending tasks message from asyncio
logger.get('asyncio').setLevel(logger.logging.CRITICAL)
if not self.restart:
log.info("Performing shutdown of Calibre-Web")
# prevent irritiating log of pending tasks message from asyncio
logger.get('asyncio').setLevel(logger.logging.CRITICAL)
return True
log.info("Performing restart of Calibre-Web")