Clarify docstring reference to LogHandlerContext.

master
voussoir 2021-08-09 08:35:12 -07:00
parent 47e3a9d7d4
commit 41dd3eb0db
No known key found for this signature in database
GPG Key ID: 5F7554F8C26DACCB
1 changed files with 1 additions and 2 deletions

View File

@ -28,11 +28,10 @@ to opt-in to the use of operatornotify so that it does not surprise them.
If your application already uses the logging module, consider these options:
- add an instance of operatornotify.LogHandler to your logger,
- wrap your whole main call in a LogHandlerContext, or
- wrap your function call in a operatornotify.LogHandlerContext, or
- add @operatornotify.main_decorator to your main function.
Commandline usage:
> operatornotify --subject XXX [--body XXX]
--subject: