summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius Gedminas <marius@gedmin.as>2017-05-04 15:43:13 +0300
committerGitHub <noreply@github.com>2017-05-04 15:43:13 +0300
commit6faa19014019197cc5028fbbb396bd5592742ceb (patch)
tree182d096fb02bfc99696a44a875815ac9a071118a
parent5e753ab2449cff0d6273ee9d744ca0666c013795 (diff)
downloadraven-6faa19014019197cc5028fbbb396bd5592742ceb.tar.gz
Gently remind the user to set the logging level
-rw-r--r--docs/integrations/logging.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/integrations/logging.rst b/docs/integrations/logging.rst
index 8b1a598..04c39b5 100644
--- a/docs/integrations/logging.rst
+++ b/docs/integrations/logging.rst
@@ -19,6 +19,10 @@ You can also automatically configure the default client with a DSN::
# Configure the default client
handler = SentryHandler('___DSN___')
+You may want to specify the logging level at this point so you don't send INFO or DEBUG messages to Sentry::
+
+ handler.setLevel(logging.ERROR)
+
Finally, call the :func:`setup_logging` helper function::
from raven.conf import setup_logging