[New-bugs-announce] [issue23175] logging.exception doesn't accept custom exc_info
Laimis
report at bugs.python.org
Tue Jan 6 01:54:53 CET 2015
New submission from Laimis:
Documentation says, that "The arguments are interpreted as for debug()." But it's not true, because no matter what exc_info is passed to logging.exception(), exc_info is overwritten (kwargs['exc_info'] = 1) and later self.error is called.
This is either documentation issue or behavior issue, because in the current implementation it's not possible to pass custom exc_info (e.g. full traceback) to logging.exception(), although documentation implies it should work the same as for info, warning, error, debug and others.
----------
components: Library (Lib)
messages: 233496
nosy: laimis
priority: normal
severity: normal
status: open
title: logging.exception doesn't accept custom exc_info
type: behavior
versions: Python 2.7
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue23175>
_______________________________________
More information about the New-bugs-announce
mailing list