diff --git a/src/authentication/noop.py b/src/authentication/noop.py index 48325a65..56b5b6e8 100644 --- a/src/authentication/noop.py +++ b/src/authentication/noop.py @@ -1,7 +1,5 @@ """Manage authentication flow for FastAPI endpoints with no-op auth.""" -import logging - from fastapi import Request from constants import ( @@ -11,8 +9,9 @@ DEFAULT_VIRTUAL_PATH, ) from authentication.interface import AuthInterface +from log import get_logger -logger = logging.getLogger(__name__) +logger = get_logger(__name__) class NoopAuthDependency(AuthInterface): # pylint: disable=too-few-public-methods diff --git a/src/authentication/noop_with_token.py b/src/authentication/noop_with_token.py index b7131d8a..298194fb 100644 --- a/src/authentication/noop_with_token.py +++ b/src/authentication/noop_with_token.py @@ -9,8 +9,6 @@ - Returns a tuple: (user_id, DEFAULT_USER_NAME, user_token). """ -import logging - from fastapi import Request from constants import ( @@ -20,8 +18,9 @@ ) from authentication.interface import AuthInterface from authentication.utils import extract_user_token +from log import get_logger -logger = logging.getLogger(__name__) +logger = get_logger(__name__) class NoopWithTokenAuthDependency( diff --git a/src/runners/uvicorn.py b/src/runners/uvicorn.py index 9763e534..467c3db8 100644 --- a/src/runners/uvicorn.py +++ b/src/runners/uvicorn.py @@ -1,12 +1,12 @@ """Uvicorn runner.""" import logging - import uvicorn +from log import get_logger from models.config import ServiceConfiguration -logger: logging.Logger = logging.getLogger(__name__) +logger = get_logger(__name__) def start_uvicorn(configuration: ServiceConfiguration) -> None: