diff options
author | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2019-07-19 09:22:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-19 09:22:21 +0200 |
commit | fe9ec057f3cba2f8428ad666ad557d2f77188268 (patch) | |
tree | a4b4f4b8567e59f8b0558f2de8786af820cd0c54 /oauthlib/__init__.py | |
parent | 9e824cfb0eb36b4d23ab73171b821b1a74ec659c (diff) | |
parent | d7b90fc841694f126ec63500ea8f74330c4672eb (diff) | |
download | oauthlib-fe9ec057f3cba2f8428ad666ad557d2f77188268.tar.gz |
Merge branch 'master' into release-3.0.2release-3.0.2
Diffstat (limited to 'oauthlib/__init__.py')
-rw-r--r-- | oauthlib/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/oauthlib/__init__.py b/oauthlib/__init__.py index 089977c..f1457a9 100644 --- a/oauthlib/__init__.py +++ b/oauthlib/__init__.py @@ -15,3 +15,20 @@ __author__ = 'The OAuthlib Community' __version__ = '3.0.2' logging.getLogger('oauthlib').addHandler(NullHandler()) + +_DEBUG = False + +def set_debug(debug_val): + """Set value of debug flag + + :param debug_val: Value to set. Must be a bool value. + """ + global _DEBUG + _DEBUG = debug_val + +def get_debug(): + """Get debug mode value. + + :return: `True` if debug mode is on, `False` otherwise + """ + return _DEBUG |