From 11e832027ad566f347b298eda00ab65ca6dd4a0f Mon Sep 17 00:00:00 2001 From: phxntxm Date: Tue, 30 Aug 2016 16:21:02 -0500 Subject: [PATCH] Corrected the logger, removed statsupdate while testing since this is not on a valid bot for carbon/bots.discord.pw --- bot.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bot.py b/bot.py index c88a05a..24a1187 100644 --- a/bot.py +++ b/bot.py @@ -23,7 +23,6 @@ extensions = ['cogs.interaction', 'cogs.links', 'cogs.tags', 'cogs.roles', - 'cogs.statsupdate', 'cogs.strawpoll', 'cogs.tictactoe', 'cogs.hangman', @@ -36,13 +35,7 @@ opts = {'command_prefix': config.commandPrefix, 'shard_id': config.shard_id} bot = commands.Bot(**opts) -discord_logger = logging.getLogger('discord') -discord_logger.setLevel(logging.WARNING) - -log = logging.getLogger() -log.setLevel(logging.INFO) -handler = logging.FileHandler(filename='bonfire.log', encoding='utf-8', mode='a') -log.addHandler(handler) +logging.basicConfig(level=logging.INFO, filename='bonfire.log') @bot.event