X-Git-Url: https://us-delaporte.pagekite.me/gitweb/matrix-goal-bot.git/blobdiff_plain/390a4cf60a66718bed359b3a4141a51d0f9571b0..6c0064a26d3facaea4590bc9d02558e6e6fdb937:/matrix_goal_bot/bot.py diff --git a/matrix_goal_bot/bot.py b/matrix_goal_bot/bot.py index dce0f73..4046eeb 100644 --- a/matrix_goal_bot/bot.py +++ b/matrix_goal_bot/bot.py @@ -42,8 +42,6 @@ def today(): return dt.now().strftime(DATE_FORMAT) logger = logging.getLogger(__name__) -logging.basicConfig(filename='matrix-goal-bot.log', encoding='utf-8', level=logging.DEBUG) -logging.getLogger('nio').setLevel(logging.WARNING) snark = [ 'Ye cannot get ye flask.', @@ -69,9 +67,11 @@ class GoalBot(): self.data = Data(db_file) def run(self): + logger.debug('Running goal bot...') self.bot.run() async def handle_message(self, room, message): + logger.debug(f'Message: {message}') match = botlib.MessageMatch(room, message, self.bot, self.prefix) if not match.is_not_from_this_bot() and match.prefix():