Skip to content

bpo-31084: QueueHandler not formatting messages#2954

Merged
vsajip merged 1 commit into
python:masterfrom
favll:fix-issue-31084
Aug 1, 2017
Merged

bpo-31084: QueueHandler not formatting messages#2954
vsajip merged 1 commit into
python:masterfrom
favll:fix-issue-31084

Conversation

@favll

@favll favll commented Jul 30, 2017

Copy link
Copy Markdown
Contributor

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

@the-knights-who-say-ni

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately our records indicate you have not signed the CLA. For legal reasons we need you to sign this before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@vsajip vsajip left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vsajip
vsajip merged commit adfe344 into python:master Aug 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants