From 33600ac7f766e11a0cdce01bbb0b83e8a0532b20 Mon Sep 17 00:00:00 2001 From: Migatu Date: Tue, 9 Apr 2024 13:01:30 +0200 Subject: [PATCH] Test 2 --- bot.py | 2 +- communication_subroutine.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bot.py b/bot.py index 1dd91d4..9e09db0 100644 --- a/bot.py +++ b/bot.py @@ -2227,7 +2227,7 @@ if __name__ == "__main__": logger.info("Starting discord bot") threads = [] threads.append(threading.Thread(target=client.run, args=(TOKEN,))) - #threads.append(threading.Thread(target=comm_subroutine, args=(OUT_COMM_Q,IN_COMM_Q))) + threads.append(threading.Thread(target=comm_subroutine, args=(logger))) for worker in threads: worker.start() for worker in threads: diff --git a/communication_subroutine.py b/communication_subroutine.py index 4956a9b..ba9d91c 100644 --- a/communication_subroutine.py +++ b/communication_subroutine.py @@ -55,8 +55,7 @@ def scan_queue(): IN_COMM_Q.put("Test") -def comm_subroutine(): - logger = logging.getLogger('conjurer_musician') +def comm_subroutine(logger): logger.setLevel(logging.DEBUG) logger.info("Started") threads = []