summaryrefslogtreecommitdiff
path: root/docs/error_reporting.rst
diff options
context:
space:
mode:
authorAbhishek Patel <abhidgreat8394@gmail.com>2019-04-23 21:08:04 -0700
committerAbhishek Patel <abhidgreat8394@gmail.com>2019-04-23 21:08:04 -0700
commit924a58fa1a9cc6eb2175ac038ca409708951915b (patch)
treec4dfbee381ba116ef2ecc72cec3fc420d31d776c /docs/error_reporting.rst
parent8390fa8ec6c019b3403b05287392e7a517c71963 (diff)
downloadoauthlib-924a58fa1a9cc6eb2175ac038ca409708951915b.tar.gz
Update documentation
Diffstat (limited to 'docs/error_reporting.rst')
-rw-r--r--docs/error_reporting.rst6
1 files changed, 5 insertions, 1 deletions
diff --git a/docs/error_reporting.rst b/docs/error_reporting.rst
index 705f447..a80287b 100644
--- a/docs/error_reporting.rst
+++ b/docs/error_reporting.rst
@@ -10,16 +10,20 @@ case where that is not true please let us know!
When reporting bugs, especially when they are hard or impossible to reproduce,
it is useful to include logging output. You can enable logging for all
-oauthlib modules by adding a logger to the `oauthlib` namespace.
+oauthlib modules by adding a logger to the `oauthlib` namespace. You might also
+want to enable debugging mode to include request data in output.
.. code-block:: python
import logging
+ import oauthlib
import sys
+ oauthlib.set_debug(True)
log = logging.getLogger('oauthlib')
log.addHandler(logging.StreamHandler(sys.stdout))
log.setLevel(logging.DEBUG)
+
If you are using a library that builds upon OAuthLib please also enable the
logging for their modules, e.g. for `requests-oauthlib`