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.
Created on 2012年08月02日 21:52 by nedbat, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (3) | |||
|---|---|---|---|
| msg167260 - (view) | Author: Ned Batchelder (nedbat) * (Python triager) | Date: 2012年08月02日 21:52 | |
The logging.exception method differs from .debug(), .info(), .warning(), .error() and .critical() in that it does not accept an `extra` keyword argument. There seems to be no reason for this. The docs are misleading about this. They say, "The arguments are interpreted as for debug()." Changing exception() to this would take care of it:: def exception(self, msg, *args, **kwargs): """ Convenience method for logging an ERROR with exception information. """ kwargs['exc_info'] = 1 self.error(msg, *args, **kwargs) |
|||
| msg167456 - (view) | Author: Roundup Robot (python-dev) (Python triager) | Date: 2012年08月04日 22:43 | |
New changeset 322da186cced by Vinay Sajip in branch '2.7': Issue #15541: Correct anomaly in logging.exception. Thanks to Ned Batchelder for the report. http://hg.python.org/cpython/rev/322da186cced |
|||
| msg167477 - (view) | Author: Florent Xicluna (flox) * (Python committer) | Date: 2012年08月05日 08:41 | |
Python 3.2 was already fixed with changeset ba014543ed2c. It would be nice to have some tests, though. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:33 | admin | set | github: 59746 |
| 2012年08月05日 08:41:41 | flox | set | nosy:
+ flox messages: + msg167477 |
| 2012年08月04日 22:44:18 | vinay.sajip | set | status: open -> closed assignee: vinay.sajip resolution: fixed versions: - Python 3.2 |
| 2012年08月04日 22:43:32 | python-dev | set | nosy:
+ python-dev messages: + msg167456 |
| 2012年08月04日 21:44:03 | r.david.murray | set | nosy:
+ vinay.sajip |
| 2012年08月02日 21:52:12 | nedbat | create | |