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 = []