mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-11-29 11:26:25 -05:00
Adding more info to log level change log.
This commit is contained in:
parent
6a7297ad0e
commit
02d02c0836
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
|
@ -274,8 +274,8 @@ async def periodic_check_log_level():
|
|||
"""Copies global log level into this Sanic worker's logger."""
|
||||
log_level = api_app.shared_ctx.log_level.value
|
||||
if log_level != logger.getEffectiveLevel():
|
||||
logger.info(f'changing log level {log_level}')
|
||||
set_log_level(log_level)
|
||||
logger.info(f'changing log level from {logger.getEffectiveLevel()} to {log_level}')
|
||||
set_log_level(log_level, warn_level=False)
|
||||
|
||||
try:
|
||||
await asyncio.sleep(1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue