[issue18413] logging.error('asdf', extra={'msg':123}) raise KeyError exception
Christian Heimes
report at bugs.python.org
Tue Jul 9 15:04:20 CEST 2013
Christian Heimes added the comment:
The issue is covered by the docs:
http://docs.python.org/2.7/library/logging.html#logging.Logger.debug
> The keys in the dictionary passed in extra should not clash with the keys used by the logging system.
You can't use a couple of reserved keys like 'msg' in the extra args. Perhaps you can find a simple workaround for your issue?
----------
nosy: +christian.heimes
resolution: -> wont fix
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18413>
_______________________________________
More information about the Python-bugs-list
mailing list