Skip to content

Commit

Permalink
generalize LOGLEVEL
Browse files Browse the repository at this point in the history
  • Loading branch information
technillogue committed Dec 14, 2021
1 parent 8ef8b62 commit 715f4ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def FuckAiohttp(record: logging.LogRecord) -> bool:
logger.setLevel("DEBUG")
fmt = logging.Formatter("{levelname} {module}:{lineno}: {message}", style="{")
console_handler = logging.StreamHandler()
console_handler.setLevel(os.getenv("LOGLEVEL") or "INFO")
console_handler.setLevel((os.getenv("LOGLEVEL") or os.getenv("LOG_LEVEL")).upper() or "INFO")
console_handler.setFormatter(fmt)
console_handler.addFilter(FuckAiohttp)
logger.addHandler(console_handler)
Expand Down

0 comments on commit 715f4ba

Please sign in to comment.