Skip to content

Commit

Permalink
Ensure settings are loaded before logger removal
Browse files Browse the repository at this point in the history
  • Loading branch information
VaultVulp committed Apr 8, 2021
1 parent 44571c4 commit 53091bd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@


async def setup_logger() -> None:
logger.remove()
if settings.is_debug:
level = 'DEBUG'
diagnose = True
else:
level = 'INFO'
diagnose = False
logger.remove()
logger.add(
sys.stdout,
level=level,
Expand Down

0 comments on commit 53091bd

Please sign in to comment.