diff options
author | 2019-03-30 10:37:59 -0400 | |
---|---|---|
committer | 2019-03-30 10:37:59 -0400 | |
commit | 5fe5b7c688e19e533fe34d98b8c754bc67a58beb (patch) | |
tree | 16c2946f97f85facf6b994b3c48099d369ee7f5a /bot/__init__.py | |
parent | Merge pull request #163 from python-discord/easter_announce (diff) | |
parent | Blank line required between summary line and description. (diff) |
Merge pull request #146 from python-discord/flake8-docstring
Implement flake8-docstrings
Diffstat (limited to 'bot/__init__.py')
-rw-r--r-- | bot/__init__.py | 5 |
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) |