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/__init__.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/__init__.py')
-rw-r--r-- | oauthlib/oauth2/rfc6749/__init__.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oauthlib/oauth2/rfc6749/__init__.py b/oauthlib/oauth2/rfc6749/__init__.py index a871ced..05a7601 100644 --- a/oauthlib/oauth2/rfc6749/__init__.py +++ b/oauthlib/oauth2/rfc6749/__init__.py @@ -9,12 +9,15 @@ for consuming and providing OAuth 2.0 RFC6749. from __future__ import absolute_import, unicode_literals import functools +import logging -from oauthlib.common import log from .errors import TemporarilyUnavailableError, ServerError from .errors import FatalClientError, OAuth2Error +log = logging.getLogger(__name__) + + class BaseEndpoint(object): def __init__(self): self._available = True |