diff --git a/loghandler.py b/loghandler.py index 189135a..2c623fe 100644 --- a/loghandler.py +++ b/loghandler.py @@ -7,6 +7,8 @@ import colorlog def loghandler(): debug_mode = os.getenv('DEBUG_MODE', False) + if debug_mode.lower() == "false": + debug_mode = False _logger = colorlog.getLogger(__name__) if debug_mode: