summaryrefslogtreecommitdiff
path: root/oauthlib/oauth2/rfc6749/grant_types/authorization_code.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/authorization_code.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/authorization_code.py')
-rw-r--r--oauthlib/oauth2/rfc6749/grant_types/authorization_code.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
index 1d84337..65e9c65 100644
--- a/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
+++ b/oauthlib/oauth2/rfc6749/grant_types/authorization_code.py
@@ -4,16 +4,19 @@ oauthlib.oauth2.rfc6749.grant_types
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"""
from __future__ import unicode_literals, absolute_import
+
import json
+import logging
from oauthlib import common
-from oauthlib.common import log
from oauthlib.uri_validate import is_absolute_uri
from .base import GrantTypeBase
from .. import errors
from ..request_validator import RequestValidator
+log = logging.getLogger(__name__)
+
class AuthorizationCodeGrant(GrantTypeBase):
"""`Authorization Code Grant`_