From: Vinay Sajip Date: Tue, 6 Jan 2015 11:10:12 +0000 (+0000) Subject: Clarified documentation for logging exception function/method. X-Git-Tag: v2.7.10rc1~243 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=6fcb9a5152325f4ad9e0e8b1f9d78646d16855b1;p=thirdparty%2FPython%2Fcpython.git Clarified documentation for logging exception function/method. --- diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst index 839bdc757976..5e21474812cb 100644 --- a/Doc/library/logging.rst +++ b/Doc/library/logging.rst @@ -227,8 +227,9 @@ is the module's name in the Python package namespace. .. method:: Logger.exception(msg, *args, **kwargs) Logs a message with level :const:`ERROR` on this logger. The arguments are - interpreted as for :meth:`debug`. Exception info is added to the logging - message. This method should only be called from an exception handler. + interpreted as for :meth:`debug`, except that any passed *exc_info* is not + inspected. Exception info is always added to the logging message. This method + should only be called from an exception handler. .. method:: Logger.addFilter(filt) @@ -845,8 +846,9 @@ functions. .. function:: exception(msg[, *args[, **kwargs]]) Logs a message with level :const:`ERROR` on the root logger. The arguments are - interpreted as for :func:`debug`. Exception info is added to the logging - message. This function should only be called from an exception handler. + interpreted as for :func:`debug`, except that any passed *exc_info* is not + inspected. Exception info is always added to the logging message. This + function should only be called from an exception handler. .. function:: log(level, msg[, *args[, **kwargs]])