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 <rep...@bugs.python.org>
<http://bugs.python.org/issue24645>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to