diff options
author | Ib Lundgren <ib.lundgren@gmail.com> | 2014-09-24 14:52:53 +0100 |
---|---|---|
committer | Ib Lundgren <ib.lundgren@gmail.com> | 2014-09-24 14:52:53 +0100 |
commit | edab385f951e38d65a25003f193793b63037bdec (patch) | |
tree | 0c5658eacb8aeca13556314cd0cffdf1db88f5c9 /oauthlib/oauth2/rfc6749/endpoints/token.py | |
parent | 3bb2bfbb593386169e997e3332b236c077a546db (diff) | |
download | oauthlib-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/endpoints/token.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/endpoints/token.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/endpoints/token.py b/oauthlib/oauth2/rfc6749/endpoints/token.py index 68d36ca..267490f 100644 --- a/oauthlib/oauth2/rfc6749/endpoints/token.py +++ b/oauthlib/oauth2/rfc6749/endpoints/token.py @@ -8,11 +8,16 @@ for consuming and providing OAuth 2.0 RFC6749. """ from __future__ import absolute_import, unicode_literals -from oauthlib.common import Request, log +import logging + +from oauthlib.common import Request from .base import BaseEndpoint, catch_errors_and_unavailability +log = logging.getLogger(__name__) + + class TokenEndpoint(BaseEndpoint): """Token issuing endpoint. |