Relax write concern for Mongo based logging
This commit is contained in:
parent
a42db0219c
commit
53bf25c1e4
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user