bpo-31084: QueueHandler not formatting messages by favll · Pull Request #2954 · python/cpython (original) (raw)

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.

The fix uses the return value of self.format(record) to put the formatted message into record.message and record.msg

EDIT: CLA was signed (and is probably pending)

https://bugs.python.org/issue31084