Kaydet (Commit) 116f16e4 authored tarafından Vinay Sajip's avatar Vinay Sajip

Added lock acquisition around handler removal from logger

üst 9bda1d6f
......@@ -1090,7 +1090,11 @@ class Logger(Filterer):
"""
if hdlr in self.handlers:
#hdlr.close()
self.handlers.remove(hdlr)
hdlr.acquire()
try:
self.handlers.remove(hdlr)
finally:
hdlr.release()
def callHandlers(self, record):
"""
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment