summaryrefslogtreecommitdiff
path: root/oauthlib/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'oauthlib/__init__.py')
-rw-r--r--oauthlib/__init__.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/oauthlib/__init__.py b/oauthlib/__init__.py
index 8eb82a6..8639e88 100644
--- a/oauthlib/__init__.py
+++ b/oauthlib/__init__.py
@@ -15,3 +15,12 @@ __author__ = 'The OAuthlib Community'
__version__ = '3.0.2-dev'
logging.getLogger('oauthlib').addHandler(NullHandler())
+
+_DEBUG = False
+
+def set_debug(debug_val):
+ global _DEBUG
+ _DEBUG = debug_val
+
+def get_debug_flag():
+ return _DEBUG