[Python-checkins] cpython (2.7): Clarified documentation for logging exception function/method.

vinay.sajip python-checkins at python.org
Tue Jan 6 12:11:03 CET 2015


https://hg.python.org/cpython/rev/86374d71d4d2
changeset:   94043:86374d71d4d2
branch:      2.7
parent:      94028:518f40815684
user:        Vinay Sajip <vinay_sajip at yahoo.co.uk>
date:        Tue Jan 06 11:10:12 2015 +0000
summary:
  Clarified documentation for logging exception function/method.

files:
  Doc/library/logging.rst |  10 ++++++----
  1 files changed, 6 insertions(+), 4 deletions(-)


diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -227,8 +227,9 @@
 .. 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 @@
 .. 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]])

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list