Relax write concern for Mongo based logging

This commit is contained in:
Lauri Võsandi 2021-06-02 15:46:03 +03:00
parent a42db0219c
commit 53bf25c1e4

View File

@ -18,7 +18,7 @@ class LogHandler(logging.Handler):
d["process"] = record.process d["process"] = record.process
d["thread"] = record.thread d["thread"] = record.thread
d["thread_name"] = record.threadName d["thread_name"] = record.threadName
db.eventlog.insert(d) db.eventlog.insert(d, w=1)
def register(): def register():
for j in logging.Logger.manager.loggerDict.values(): for j in logging.Logger.manager.loggerDict.values():