Message313093
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, |
|
| Date |
User |
Action |
Args |
| 2018-03-01 11:15:27 | mcoolive | set | recipients:
+ mcoolive, vinay.sajip, matrixise |
| 2018-03-01 11:15:27 | mcoolive | set | messageid: <1519902927.35.0.467229070634.issue32732@psf.upfronthosting.co.za> |
| 2018-03-01 11:15:27 | mcoolive | link | issue32732 messages |
| 2018-03-01 11:15:27 | mcoolive | create | |
|