aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
Diffstat (limited to 'pysite')
-rw-r--r--pysite/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/pysite/__init__.py b/pysite/__init__.py
index 3e7aad42..a87e79d4 100644
--- a/pysite/__init__.py
+++ b/pysite/__init__.py
@@ -6,7 +6,6 @@ import os
# region Logging
# Get the log level from environment
log_level = os.environ.get("LOG_LEVEL", "info").upper()
-formatter = logging.Formatter('[%(asctime)s] [%(levelname)s] %(message)s')
if hasattr(logging, log_level):
log_level = getattr(logging, log_level)
@@ -14,5 +13,5 @@ else:
raise RuntimeError("LOG_LEVEL environment variable has an invalid value.")
# This handler will ensure we log to stdout and stderr
-logging.basicConfig(format=formatter, level=log_level)
+logging.basicConfig(format='[%(asctime)s] [%(levelname)s] %(message)s', level=log_level)
# endregion