aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/__init__.py')
-rw-r--r--pysite/__init__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/pysite/__init__.py b/pysite/__init__.py
index 2f3ed636..93362f6a 100644
--- a/pysite/__init__.py
+++ b/pysite/__init__.py
@@ -30,13 +30,7 @@ def monkeypatch_trace(self, msg, *args, **kwargs):
Logger.trace = monkeypatch_trace
-log_level = "TRACE"
-
-if hasattr(logging, log_level):
- log_level = getattr(logging, log_level)
-else:
- raise RuntimeError(f"LOG_LEVEL environment variable has invalid value: {log_level}")
-
+log_level = logging.TRACE
logging_handlers = []
if PAPERTRAIL_ADDRESS: