summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/grant_types/base.py
diff options
context:
space:
mode:
authorIb Lundgren <ib.lundgren@gmail.com>2014-09-24 14:52:53 +0100
committerIb Lundgren <ib.lundgren@gmail.com>2014-09-24 14:52:53 +0100
commitedab385f951e38d65a25003f193793b63037bdec (patch)
tree0c5658eacb8aeca13556314cd0cffdf1db88f5c9 /oauthlib/oauth2/rfc6749/grant_types/base.py
parent3bb2bfbb593386169e997e3332b236c077a546db (diff)
downloadoauthlib-edab385f951e38d65a25003f193793b63037bdec.tar.gz
Change logging namespace to a tiered one.
Rather than have all logging under oauthlib we now have it per file using __name__. Users who wish to enable or disable all logging can still do so by enabling or disabling the oauthlib logging namespace.
Diffstat (limited to 'oauthlib/oauth2/rfc6749/grant_types/base.py')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/base.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/base.py b/oauthlib/oauth2/rfc6749/grant_types/base.py
index a3dd87c..9121580 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/base.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/base.py
@@ -5,9 +5,12 @@ oauthlib.oauth2.rfc6749.grant_types
"""
from __future__ import unicode_literals, absolute_import
-from oauthlib.common import log
+import logging
+
from oauthlib.oauth2.rfc6749 import errors, utils
+log = logging.getLogger(__name__)
+
class GrantTypeBase(object):
error_uri = None