Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit aa8a62d

Browse files
committed
Merged documentation update from 3.2.
2 parents 0588eac + fee358b commit aa8a62d

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

Doc/library/logging.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -378,12 +378,14 @@ subclasses. However, the :meth:`__init__` method in subclasses needs to call
378378
.. method:: Handler.handleError(record)
379379

380380
This method should be called from handlers when an exception is encountered
381-
during an :meth:`emit` call. By default it does nothing, which means that
382-
exceptions get silently ignored. This is what is mostly wanted for a logging
383-
system - most users will not care about errors in the logging system, they are
384-
more interested in application errors. You could, however, replace this with a
385-
custom handler if you wish. The specified record is the one which was being
386-
processed when the exception occurred.
381+
during an :meth:`emit` call. If the module-level attribute
382+
``raiseExceptions`` is ``False``, exceptions get silently ignored. This is
383+
what is mostly wanted for a logging system - most users will not care about
384+
errors in the logging system, they are more interested in application
385+
errors. You could, however, replace this with a custom handler if you wish.
386+
The specified record is the one which was being processed when the exception
387+
occurred. (The default value of ``raiseExceptions`` is ``True``, as that is
388+
more useful during development).
387389

388390

389391
.. method:: Handler.format(record)

0 commit comments

Comments
 (0)