aboutsummaryrefslogtreecommitdiffstats
path: root/pysite
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-06 21:24:10 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-06 21:24:10 +0100
commitfc462892b860b92937152249a1fd00cca1fb03e7 (patch)
tree18e7d59771f4bf99f5bd1ee16ebbd32ef3e5246d /pysite
parentLogging changes (diff)
Don't log DEBUG/TRACE
Diffstat (limited to 'pysite')
-rw-r--r--pysite/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/__init__.py b/pysite/__init__.py
index 62f7f906..a8009f07 100644
--- a/pysite/__init__.py
+++ b/pysite/__init__.py
@@ -27,7 +27,7 @@ def monkeypatch_trace(self, msg, *args, **kwargs):
Logger.trace = monkeypatch_trace
-log_level = logging.TRACE
+log_level = logging.TRACE if DEBUG_MODE else logging.INFO
logging_handlers = []
if DEBUG_MODE: