summaryrefslogtreecommitdiffstats
path: root/Doc/library/logging.rst
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2012-02-20 18:35:26 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2012-02-20 18:35:26 (GMT)
commitfee358b0df547e9451cfb0b3d25980e6cc7177cc (patch)
tree0c2c183818ea58814f3523e2d299912c3469a467 /Doc/library/logging.rst
parentc3ef037ee1b5c5d146f9da73d6cef337e6ada099 (diff)
downloadcpython-fee358b0df547e9451cfb0b3d25980e6cc7177cc.zip
cpython-fee358b0df547e9451cfb0b3d25980e6cc7177cc.tar.gz
cpython-fee358b0df547e9451cfb0b3d25980e6cc7177cc.tar.bz2
logging: clarified documentation for Handler.handleError.
Diffstat (limited to 'Doc/library/logging.rst')
-rw-r--r--Doc/library/logging.rst14
1 files changed, 8 insertions, 6 deletions
diff --git a/Doc/library/logging.rst b/Doc/library/logging.rst
index 5a41160..c429c85 100644
--- a/Doc/library/logging.rst
+++ b/Doc/library/logging.rst
@@ -375,12 +375,14 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
.. method:: Handler.handleError(record)
This method should be called from handlers when an exception is encountered
- during an :meth:`emit` call. By default it does nothing, which means that
- exceptions get silently ignored. This is what is mostly wanted for a logging
- system - most users will not care about errors in the logging system, they are
- more interested in application errors. You could, however, replace this with a
- custom handler if you wish. The specified record is the one which was being
- processed when the exception occurred.
+ during an :meth:`emit` call. If the module-level attribute
+ ``raiseExceptions`` is ``False``, exceptions get silently ignored. This is
+ what is mostly wanted for a logging system - most users will not care about
+ errors in the logging system, they are more interested in application
+ errors. You could, however, replace this with a custom handler if you wish.
+ The specified record is the one which was being processed when the exception
+ occurred. (The default value of ``raiseExceptions`` is ``True``, as that is
+ more useful during development).
.. method:: Handler.format(record)