8 Commits

Author SHA1 Message Date
Rapptz
ea32147d02 Fix all warnings with Sphinx 2021-04-10 03:27:40 -04:00
numbermaniac
d6df55afe2
logging.rst: Fix some typos and grammar errors 2020-10-16 22:46:31 -04:00
Tobotimus
3112e1c17e Add intersphinx 2018-01-06 17:23:59 -05:00
Matt Gardner
cc23a54d58 Typo fix
Changed spelling of optinal to the correct spelling of optional in
docs\logging.rst
2016-04-15 21:53:35 -04:00
Hornwitser
320cd39b6a Print to stderr in on_error
Apparently the clever hack for logging in on_error was not so clever
after all.  If logging isn't configured, by the logging modules
definition of not configured, which is root logger not having an
Handlers attached, it will call logging.basicConfig().  Which messes up
setups that define handlers for other loggers than the root logger.

Going directly to the root logger rather than using the broken
convenience methods for logger is not an option either, as logger before
Python 3.2 does not have lastResort on the root logger, and prints an
error when invoked without any handlers.

Resolve by printing tracebacks to stderr by default in on_error.
2015-10-22 22:07:50 +02:00
Rapptz
1f37fe72f2 Documentation cleanup.
Documented the new way of listening to events as well the new
events that could be listened thanks to the recent refactor.

Also uses the versionadded directive to document when something new
is added to the library.
2015-10-13 05:39:59 -04:00
Hornwitser
e258c9b893 Clarify logging and on_error documentation
Change the description of on_error to reflect that exceptions are logged
and not output by default. Add a note about not configuring logging
causing exceptions to be silently ignored in handlers in the API. And
add some more explanations and a simpler configuration example to the
logging description.
2015-10-06 19:09:16 +02:00
Rapptz
bbf1c5418b Add support for logging. 2015-09-16 17:27:52 -04:00