aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-04-16 21:00:05 +0200
committerGravatar Leon Sandøy <[email protected]>2018-04-16 21:00:05 +0200
commit74d39bb9eacc3ed82080cc724bf0cb49fa9f9346 (patch)
tree6a65903b2421722f009a57cafff89e4eb0a6930e
parentAdding the TRACE log level monkey patch from bot (diff)
We don't really need this env var anymore. We always want TRACE logging.
Diffstat (limited to '')
-rw-r--r--pysite/__init__.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/pysite/__init__.py b/pysite/__init__.py
index 5a48c94d..2f3ed636 100644
--- a/pysite/__init__.py
+++ b/pysite/__init__.py
@@ -1,6 +1,5 @@
# coding=utf-8
import logging
-import os
import sys
from logging import Logger, StreamHandler
from logging.handlers import SysLogHandler
@@ -31,8 +30,7 @@ def monkeypatch_trace(self, msg, *args, **kwargs):
Logger.trace = monkeypatch_trace
-
-log_level = os.environ.get("LOG_LEVEL", "debug").upper()
+log_level = "TRACE"
if hasattr(logging, log_level):
log_level = getattr(logging, log_level)