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
1 changed files with 1 additions and 1 deletions

View File

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