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 Cameron.Lee
Recipients Cameron.Lee, docs@python
Date 2014-04-15.20:19:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1397593199.67.0.956489214078.issue21245@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2014-04-15 20:19:59Cameron.Leesetrecipients: + Cameron.Lee, docs@python
2014-04-15 20:19:59Cameron.Leesetmessageid: <1397593199.67.0.956489214078.issue21245@psf.upfronthosting.co.za>
2014-04-15 20:19:59Cameron.Leelinkissue21245 messages
2014-04-15 20:19:59Cameron.Leecreate