mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 13:34:40 +00:00
logg
This commit is contained in:
@@ -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,)))
|
||||
|
||||
Reference in New Issue
Block a user