Cyril Martin <mcool...@gmail.com> added the comment:

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,

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32732>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to