aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar scragly <[email protected]>2019-05-11 04:51:30 +1000
committerGravatar GitHub <[email protected]>2019-05-11 04:51:30 +1000
commit0e2c6a1b0daef5b569da7652801b5725bf1ed95b (patch)
treec3d57e50f2ba07cb2d9e7476d3b9441c1f671bd9 /bot/__init__.py
parentnot importing aiohttp now (diff)
parentMerge pull request #198 from Suhail6inkling/constants_fix (diff)
Merge branch 'master' into hanukkah_embed_iceman
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 54b242ee..7c564178 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -16,10 +16,11 @@ logging.addLevelName(logging.TRACE, "TRACE")
def monkeypatch_trace(self, msg, *args, **kwargs):
"""
Log 'msg % args' with severity 'TRACE'.
- To pass exception information, use the keyword argument exc_info with
- a true value, e.g.
+
+ To pass exception information, use the keyword argument exc_info with a true value, e.g.
logger.trace("Houston, we have an %s", "interesting problem", exc_info=1)
"""
+
if self.isEnabledFor(logging.TRACE):
self._log(logging.TRACE, msg, args, **kwargs)
@@ -53,6 +54,7 @@ if root.handlers:
# Silence irrelevant loggers
logging.getLogger("discord").setLevel(logging.ERROR)
logging.getLogger("websockets").setLevel(logging.ERROR)
+logging.getLogger("PIL").setLevel(logging.ERROR)
# Setup new logging configuration
logging.basicConfig(