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,)))