mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-01 05:49:58 +00:00
suppress asyncio message always on restart or shutdown
This commit is contained in:
parent
5dac13b1da
commit
cefdd2f66c
@ -251,10 +251,11 @@ class WebServer(object):
|
|||||||
finally:
|
finally:
|
||||||
self.wsgiserver = None
|
self.wsgiserver = None
|
||||||
|
|
||||||
if not self.restart:
|
|
||||||
log.info("Performing shutdown of Calibre-Web")
|
|
||||||
# prevent irritiating log of pending tasks message from asyncio
|
# prevent irritiating log of pending tasks message from asyncio
|
||||||
logger.get('asyncio').setLevel(logger.logging.CRITICAL)
|
logger.get('asyncio').setLevel(logger.logging.CRITICAL)
|
||||||
|
|
||||||
|
if not self.restart:
|
||||||
|
log.info("Performing shutdown of Calibre-Web")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
log.info("Performing restart of Calibre-Web")
|
log.info("Performing restart of Calibre-Web")
|
||||||
|
Loading…
Reference in New Issue
Block a user