Issue 31084: QueueHandler not formatting messages (original) (raw)

Issue31084

Created on 2017-07-30 21:52 by favll, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
queue_handler_bug.py favll,2017-07-30 21:52
Pull Requests
URL Status Linked Edit
PR 2954 merged favll,2017-07-30 22:00
PR 9537 merged cheryl.sabella,2018-09-24 16:56
PR 31355 open emontnemery,2022-02-15 10:20
Messages (2)
msg299525 - (view) Author: (favll) * Date: 2017-07-30 21:52
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.
msg299626 - (view) Author: Vinay Sajip (vinay.sajip) * (Python committer) Date: 2017-08-01 18:12
New changeset adfe3440f65dfd6cf4463db6cd02cdc78e77ce17 by Vinay Sajip (favll) in branch 'master': bpo-31084: QueueHandler now formats messages correctly. (GH-2954) https://github.com/python/cpython/commit/adfe3440f65dfd6cf4463db6cd02cdc78e77ce17
History
Date User Action Args
2022-04-11 14:58:49 admin set github: 75267
2022-02-15 10:20:46 emontnemery set nosy: + emontnemerypull_requests: + <pull%5Frequest29505>
2018-09-24 16:56:40 cheryl.sabella set pull_requests: + <pull%5Frequest8947>
2017-08-01 18🔞30 vinay.sajip set status: open -> closedresolution: fixedstage: resolved
2017-08-01 18:12:29 vinay.sajip set messages: +
2017-08-01 07:48:46 pitrou set nosy: + vinay.sajip
2017-07-30 22:00:36 favll set pull_requests: + <pull%5Frequest3001>
2017-07-30 21:52:10 favll create