diff options
author | 2021-11-29 09:15:05 +0000 | |
---|---|---|
committer | 2021-11-29 09:15:05 +0000 | |
commit | c462d899f02495a4875df1f59fd97b39202ba8de (patch) | |
tree | d6a60f9735ae21c7ef5d546ec2cfc8c84b1200c2 /bot/monkey_patches.py | |
parent | Change `MODERATION_ROLES` and `STAFF_ROLES` constants to be a set (diff) | |
parent | Merge pull request #951 from python-discord/file_logging (diff) |
Merge branch 'main' into update-role-constants
Diffstat (limited to 'bot/monkey_patches.py')
-rw-r--r-- | bot/monkey_patches.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/bot/monkey_patches.py b/bot/monkey_patches.py index fe81f2e3..fa6627d1 100644 --- a/bot/monkey_patches.py +++ b/bot/monkey_patches.py @@ -7,17 +7,6 @@ from discord.ext import commands log = logging.getLogger(__name__) -def trace_log(self: logging.Logger, msg: str, *args, **kwargs) -> None: - """ - Log 'msg % args' with severity 'TRACE'. - - 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) - - class Command(commands.Command): """ A `discord.ext.commands.Command` subclass which supports root aliases. |