[New-bugs-announce] [issue24645] logging.handlers.QueueHandler should not lock when handling a record
Justin Bronder
report at bugs.python.org
Thu Jul 16 21:03:19 CEST 2015
New submission from Justin Bronder:
The Queue backing the QueueHandler is already sufficiently locking for thread-safety.
This isn't a huge issue, but the QueueHandler is a very nice built-in which could be used to work around a deadlock I've encountered several times. In brief, functions which can cause other threads to log being called from either __repr__() or __str__().
----------
components: Library (Lib)
files: queue-handler-no-lock.patch
keywords: patch
messages: 246812
nosy: jsbronder
priority: normal
severity: normal
status: open
title: logging.handlers.QueueHandler should not lock when handling a record
versions: Python 3.2, Python 3.3, Python 3.4, Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39935/queue-handler-no-lock.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24645>
_______________________________________
More information about the New-bugs-announce
mailing list