fix(moderation): hopefully fixed messages logging twice to console
All checks were successful
Pylint / Pylint (push) Successful in 1m12s

This commit is contained in:
Seaswimmer 2023-10-06 10:27:57 -04:00
parent 6eb086f8cb
commit 9524bd753c
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -30,11 +30,6 @@ class Moderation(commands.Cog):
disable_dateutil()
self.handle_expiry.start() # pylint: disable=no-member
self.logger = logging.getLogger('red.seaswimmerthefsh.moderation')
handler = logging.StreamHandler()
handler.setLevel(logging.INFO)
formatter = logging.Formatter('[%(levelname)s] %(name)s: %(message)s')
handler.setFormatter(formatter)
self.logger.addHandler(handler)
async def cog_load(self):
"""This method prepares the database schema for all of the guilds the bot is currently in."""