mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Issue #16884: Merged doc fix from 3.2.
This commit is contained in:
commit
9a546530bb
2 changed files with 6 additions and 6 deletions
|
@ -970,10 +970,10 @@ The default implementation of :meth:`handleError` in :class:`Handler` checks
|
||||||
to see if a module-level variable, :data:`raiseExceptions`, is set. If set, a
|
to see if a module-level variable, :data:`raiseExceptions`, is set. If set, a
|
||||||
traceback is printed to :data:`sys.stderr`. If not set, the exception is swallowed.
|
traceback is printed to :data:`sys.stderr`. If not set, the exception is swallowed.
|
||||||
|
|
||||||
**Note:** The default value of :data:`raiseExceptions` is ``True``. This is because
|
.. note:: The default value of :data:`raiseExceptions` is ``True``. This is
|
||||||
during development, you typically want to be notified of any exceptions that
|
because during development, you typically want to be notified of any
|
||||||
occur. It's advised that you set :data:`raiseExceptions` to ``False`` for production
|
exceptions that occur. It's advised that you set :data:`raiseExceptions` to
|
||||||
usage.
|
``False`` for production usage.
|
||||||
|
|
||||||
.. currentmodule:: logging
|
.. currentmodule:: logging
|
||||||
|
|
||||||
|
|
|
@ -978,8 +978,8 @@ functions.
|
||||||
registered using this function, levels should be positive integers and they
|
registered using this function, levels should be positive integers and they
|
||||||
should increase in increasing order of severity.
|
should increase in increasing order of severity.
|
||||||
|
|
||||||
NOTE: If you are thinking of defining your own levels, please see the section
|
.. note:: If you are thinking of defining your own levels, please see the
|
||||||
on :ref:`custom-levels`.
|
section on :ref:`custom-levels`.
|
||||||
|
|
||||||
.. function:: getLevelName(lvl)
|
.. function:: getLevelName(lvl)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue