aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/__init__.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-04-16 21:08:18 +0200
committerGravatar Leon Sandøy <[email protected]>2018-04-16 21:08:18 +0200
commit4743f2cd619f6bcfbe6be1dc107b8eb3b9007211 (patch)
treec82dfceb3d59d0e84cda3402d6e675be90b5f8fb /pysite/__init__.py
parentWe don't really need this env var anymore. We always want TRACE logging. (diff)
I guess we were testing for log level handling. Removed these tests. We always want TRACE level logging, we can filter in datadog.
Diffstat (limited to '')
-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: