From 167fe59456c9a3def14f96db330edda4adb61fb1 Mon Sep 17 00:00:00 2001 From: mtuszowski Date: Thu, 1 Aug 2024 17:58:40 +0200 Subject: [PATCH] logg --- communication_subroutine.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/communication_subroutine.py b/communication_subroutine.py index 2ab60f9..66a0068 100644 --- a/communication_subroutine.py +++ b/communication_subroutine.py @@ -20,6 +20,8 @@ prepped_tracks = { "prio":"", "jingles":"" } +logger = logging.getLogger("discord") + class QueryControl: """ This class `QueryControl` is used to manage queries with information about the author, UUID, @@ -29,7 +31,7 @@ class QueryControl: self.author = query_author self.uuid = query_uuid self.content = query_content - self.logger = uplogger + self.logger = logging.getLogger("discord") self.stop = False self.ctx = ctx self.logger.info( @@ -43,7 +45,6 @@ def log_radio_tracks(): record = json.loads(request.data) app.logger.info(record) app.logger.info("DATA RECEIVED") - incoming_q.put(record) return jsonify("SUCCESS") @@ -145,6 +146,7 @@ def comm_subroutine(logger): the provided code snippet, the logger is used to log messages at the "info" level """ #logger.setLevel(logging.DEBUG) + logging.getLogger("discord") logger.info("Started") threads = [] #threads.append(threading.Thread(target=flask_debug, args=(logger,)))