Commit cefdd2f6 authored by Ozzie Isaacs's avatar Ozzie Isaacs

suppress asyncio message always on restart or shutdown

parent 5dac13b1
......@@ -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")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment