[New-bugs-announce] [issue21245] Logging Logger.exception documentation

Cameron Lee report at bugs.python.org
Tue Apr 15 22:19:59 CEST 2014


New submission from Cameron Lee:

The documentation doesn't indicate that the Logger.exception method can accept kwargs like the other logging methods (Logger.debug, Logger.info, etc...) such as exc_info, stack_info, and extra.

https://docs.python.org/2.7/library/logging.html#logging.Logger.exception

The method signature is documented as: 

Logger.exception(msg, *args)

It should be:

Logger.exception(msg, *args, **kwargs)

It appears that this functionality was added in between Python 2.7.3 and 2.7.4 (http://bugs.python.org/issue15541) but that the documentation was never changed for the newer versions.

----------
assignee: docs at python
components: Documentation
messages: 216379
nosy: Cameron.Lee, docs at python
priority: normal
severity: normal
status: open
title: Logging Logger.exception documentation
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21245>
_______________________________________


More information about the New-bugs-announce mailing list