diff options
author | 2018-06-06 21:24:10 +0100 | |
---|---|---|
committer | 2018-06-06 21:24:10 +0100 | |
commit | fc462892b860b92937152249a1fd00cca1fb03e7 (patch) | |
tree | 18e7d59771f4bf99f5bd1ee16ebbd32ef3e5246d /pysite | |
parent | Logging changes (diff) |
Don't log DEBUG/TRACE
Diffstat (limited to 'pysite')
-rw-r--r-- | pysite/__init__.py | 2 |
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: |