Patch related to the #5669

This commit is contained in:
Miroslav Stampar
2024-03-29 22:24:20 +01:00
parent e0663ceb6f
commit 29ccb7f9a3
3 changed files with 4 additions and 4 deletions

View File

@@ -276,7 +276,7 @@ class LogRecorder(logging.StreamHandler):
Record emitted events to IPC database for asynchronous I/O
communication with the parent process
"""
conf.databaseCursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", (conf.taskid, time.strftime("%X"), record.levelname, record.msg % record.args if record.args else record.msg))
conf.databaseCursor.execute("INSERT INTO logs VALUES(NULL, ?, ?, ?, ?)", (conf.taskid, time.strftime("%X"), record.levelname, str(record.msg % record.args if record.args else record.msg)))
def setRestAPILog():
if conf.api: