aboutsummaryrefslogtreecommitdiffstats
path: root/bot/__init__.py
diff options
context:
space:
mode:
authorGravatar Rohan <[email protected]>2019-04-05 21:57:01 +0530
committerGravatar Rohan <[email protected]>2019-04-05 21:57:01 +0530
commite590dcd137a9c86b3b7b6d48b5d72d0fc395a768 (patch)
tree69a8111e913687e278803e336bf316cc1d7d562b /bot/__init__.py
parentMerge pull request #1 from python-discord/master (diff)
parentMerge pull request #184 from RohanRadia/master (diff)
Merge branch 'master' of https://github.com/python-discord/seasonalbot
Diffstat (limited to 'bot/__init__.py')
-rw-r--r--bot/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 54b242ee..21ff8c97 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)