]> apps.delaporte.us Git - matrix-chore-bot.git/commitdiff
Log
authorEdward Delaporte <edward@delaporte.us>
Tue, 5 May 2026 03:11:01 +0000 (22:11 -0500)
committerEdward Delaporte <edward@delaporte.us>
Tue, 5 May 2026 03:11:01 +0000 (22:11 -0500)
matrix_chore_bot/bot.py

index c1a76d336464253f3ca51bee7b8f2f48ec9da6e3..2484c462ba6f6ec7ec642393b6c3efe05b6e7a66 100644 (file)
@@ -23,7 +23,6 @@ import simplematrixbotlib as botlib
 from .db import Data as ChoreData
 
 logger = logging.getLogger(__name__)
 from .db import Data as ChoreData
 
 logger = logging.getLogger(__name__)
-logging.basicConfig(filename='matrix-chore-bot.log', encoding='utf-8', level=logging.DEBUG)
 logging.getLogger('nio').setLevel(logging.WARNING)
 
 class ChoreBot():
 logging.getLogger('nio').setLevel(logging.WARNING)
 
 class ChoreBot():
@@ -33,6 +32,9 @@ class ChoreBot():
                  db_file=None,
                  bot_prefix='!chore'):
 
                  db_file=None,
                  bot_prefix='!chore'):
 
+    logging.basicConfig(filename='matrix-chore-bot.log', encoding='utf-8', level=logging.DEBUG)
+
+
         creds = botlib.Creds(matrix_server, bot_name, bot_pwd)
         self.bot = botlib.Bot(creds)
         self.prefix = bot_prefix
         creds = botlib.Creds(matrix_server, bot_name, bot_pwd)
         self.bot = botlib.Bot(creds)
         self.prefix = bot_prefix