*(minor): remove __name__ param from get_logger

This commit is contained in:
Langhammer, Jens
2019-10-04 10:08:53 +02:00
parent 2b8fed8f4e
commit c0df1f38b8
49 changed files with 48 additions and 50 deletions

View File

@ -6,7 +6,7 @@ from structlog import get_logger
from passbook.lib.config import CONFIG
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class PassbookOAuthClientConfig(AppConfig):
"""passbook oauth_client config"""

View File

@ -11,7 +11,7 @@ from requests.exceptions import RequestException
from requests_oauthlib import OAuth1
from structlog import get_logger
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class BaseOAuthClient:

View File

@ -10,7 +10,7 @@ from passbook.oauth_client.source_types.manager import MANAGER, RequestKind
from passbook.oauth_client.utils import user_get_or_create
from passbook.oauth_client.views.core import OAuthCallback
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class AzureADOAuth2Client(OAuth2Client):

View File

@ -9,7 +9,7 @@ from passbook.oauth_client.source_types.manager import MANAGER, RequestKind
from passbook.oauth_client.utils import user_get_or_create
from passbook.oauth_client.views.core import OAuthCallback, OAuthRedirect
LOGGER = get_logger(__name__)
LOGGER = get_logger()
@MANAGER.source(kind=RequestKind.redirect, name='Discord')

View File

@ -5,7 +5,7 @@ from structlog import get_logger
from passbook.oauth_client.views.core import OAuthCallback, OAuthRedirect
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class RequestKind(Enum):
"""Enum of OAuth Request types"""

View File

@ -10,7 +10,7 @@ from passbook.oauth_client.source_types.manager import MANAGER, RequestKind
from passbook.oauth_client.utils import user_get_or_create
from passbook.oauth_client.views.core import OAuthCallback, OAuthRedirect
LOGGER = get_logger(__name__)
LOGGER = get_logger()
@MANAGER.source(kind=RequestKind.redirect, name='reddit')

View File

@ -10,7 +10,7 @@ from passbook.oauth_client.source_types.manager import MANAGER, RequestKind
from passbook.oauth_client.utils import user_get_or_create
from passbook.oauth_client.views.core import OAuthCallback
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class SupervisrOAuth2Client(OAuth2Client):

View File

@ -8,7 +8,7 @@ from passbook.oauth_client.source_types.manager import MANAGER, RequestKind
from passbook.oauth_client.utils import user_get_or_create
from passbook.oauth_client.views.core import OAuthCallback
LOGGER = get_logger(__name__)
LOGGER = get_logger()
class TwitterOAuthClient(OAuthClient):

View File

@ -16,7 +16,7 @@ from passbook.lib.utils.reflection import app
from passbook.oauth_client.clients import get_client
from passbook.oauth_client.models import OAuthSource, UserOAuthSourceConnection
LOGGER = get_logger(__name__)
LOGGER = get_logger()
# pylint: disable=too-few-public-methods