[New-bugs-announce] [issue31084] QueueHandler not formatting messages

favll report at bugs.python.org
Sun Jul 30 17:52:10 EDT 2017


New submission from favll:

QueueHandler does not seem to format messages when setting a Formatter and attaching the QueueHandler to a logger. See attachement for a concise example.

According to the internal documentation of the QueueHandler's prepare method it is expected that self.format(record) will format the message and put the message into record.message. However, this is not the case and self.format(record) only returns the message. So this should be ab easy fix.

----------
components: Library (Lib)
files: queue_handler_bug.py
messages: 299525
nosy: favll
priority: normal
severity: normal
status: open
title: QueueHandler not formatting messages
type: behavior
versions: Python 3.7
Added file: http://bugs.python.org/file47052/queue_handler_bug.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue31084>
_______________________________________


More information about the New-bugs-announce mailing list