From 86feb8228b095308defe55b79c109fcfb047b8dd Mon Sep 17 00:00:00 2001 From: Gareth Coles Date: Wed, 6 Jun 2018 20:21:35 +0100 Subject: Let's not log TRACE/DEBUG in prod --- bot/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- cgit v1.2.3