]> us-delaporte.pagekite.me Git - matrix-goal-bot.git/blobdiff - tasks.py
fixup
[matrix-goal-bot.git] / tasks.py
index 2132e5158cd849f3ab3b37be30376e2638ca6cf8..29d9f5b610a4ea3524ee13ec48fad8a743b382df 100644 (file)
--- a/tasks.py
+++ b/tasks.py
@@ -1,5 +1,11 @@
+import logging
+
 from invoke import Collection
 from matrix_goal_bot import tasks
 
+logging.basicConfig(filename='matrix-goal-bot.log', encoding='utf-8', level=logging.DEBUG)
+logging.getLogger('nio').setLevel(logging.WARNING)
+logging.getLogger('asyncio').setLevel(logging.WARNING)
+
 ns = Collection()
 ns.add_collection(tasks, 'goals')