diff --git a/bento_wes/logger.py b/bento_wes/logger.py index 498b9fa..4896c59 100644 --- a/bento_wes/logger.py +++ b/bento_wes/logger.py @@ -1,10 +1,16 @@ import logging +import os + +from bento_lib.logging import log_level_from_str __all__ = [ "logger", ] -logging.basicConfig(level=logging.DEBUG) +logging.basicConfig(level=logging.NOTSET) + +# Suppress asyncio debug logs +logging.getLogger("asyncio").setLevel(logging.INFO) logger = logging.getLogger(__name__) -logger.setLevel(logging.DEBUG) +logger.setLevel(log_level_from_str(os.environ.get("LOG_LEVEL", "info").lower().strip()))