This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mcoolive
Recipients matrixise, mcoolive, vinay.sajip
Date 2018-03-01.11:15:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1519902927.35.0.467229070634.issue32732@psf.upfronthosting.co.za>
In-reply-to
Content
Hello Vinay,

I strongly disagree with you. In the Python documentation (https://docs.python.org/3/library/logging.html), we can read the following for the debug function:

> The third keyword argument is extra which can be used to pass a dictionary
> which is used to populate the __dict__ of the LogRecord created for the
> logging event with user-defined attributes.

It never says 'BUT IF you use the LoggerAdapter'. So the current behavior differs from what is explained in the documentation: there is an issue.

By the way, I don't ask to fix the documentation, I prefer a consistent logging API. I simply cannot think a use case where we want extras of the logging statement be ignored.

Regards,
History
Date User Action Args
2018-03-01 11:15:27mcoolivesetrecipients: + mcoolive, vinay.sajip, matrixise
2018-03-01 11:15:27mcoolivesetmessageid: <1519902927.35.0.467229070634.issue32732@psf.upfronthosting.co.za>
2018-03-01 11:15:27mcoolivelinkissue32732 messages
2018-03-01 11:15:27mcoolivecreate