aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Gareth Coles <[email protected]>2018-06-06 20:21:35 +0100
committerGravatar Gareth Coles <[email protected]>2018-06-06 20:21:35 +0100
commit86feb8228b095308defe55b79c109fcfb047b8dd (patch)
tree6be7aabf9d2a87f45ea001fa7234a31b18852e93
parentLog JSON to stderr when not in debug mode (diff)
Let's not log TRACE/DEBUG in prod
-rw-r--r--bot/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 43356efca..d65aac752 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -53,7 +53,7 @@ else:
logging.basicConfig(
format="%(asctime)s pd.beardfist.com Bot: | %(name)30s | %(levelname)8s | %(message)s",
datefmt="%b %d %H:%M:%S",
- level=logging.TRACE,
+ level=logging.TRACE if DEBUG_MODE else logging.info,
handlers=logging_handlers
)