File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11"""Manage authentication flow for FastAPI endpoints with no-op auth."""
22
3- import logging
4-
53from fastapi import Request
64
75from constants import (
119 DEFAULT_VIRTUAL_PATH ,
1210)
1311from authentication .interface import AuthInterface
12+ from log import get_logger
1413
15- logger = logging . getLogger (__name__ )
14+ logger = get_logger (__name__ )
1615
1716
1817class NoopAuthDependency (AuthInterface ): # pylint: disable=too-few-public-methods
Original file line number Diff line number Diff line change 99- Returns a tuple: (user_id, DEFAULT_USER_NAME, user_token).
1010"""
1111
12- import logging
13-
1412from fastapi import Request
1513
1614from constants import (
2018)
2119from authentication .interface import AuthInterface
2220from authentication .utils import extract_user_token
21+ from log import get_logger
2322
24- logger = logging . getLogger (__name__ )
23+ logger = get_logger (__name__ )
2524
2625
2726class NoopWithTokenAuthDependency (
Original file line number Diff line number Diff line change 11"""Uvicorn runner."""
22
33import logging
4-
54import uvicorn
65
6+ from log import get_logger
77from models .config import ServiceConfiguration
88
9- logger : logging . Logger = logging . getLogger (__name__ )
9+ logger = get_logger (__name__ )
1010
1111
1212def start_uvicorn (configuration : ServiceConfiguration ) -> None :
You can’t perform that action at this time.
0 commit comments