Skip to content

Commit

Permalink
Revert "[test] remove logger middleware"
Browse files Browse the repository at this point in the history
This reverts commit 7f46982.
  • Loading branch information
mxnoob committed Aug 19, 2024
1 parent 7f46982 commit 4c1d1d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from app.core.db import engine
from app.core.init_db import create_first_superuser
from app.core.logger_config import LOGGING_CONFIG
from app.core.middleware import LoggerMiddleware

logging.config.dictConfig(LOGGING_CONFIG)
logger = logging.getLogger(__name__)
Expand Down Expand Up @@ -44,7 +45,7 @@ def swagger_monkey_patch(*args, **kwargs):
allow_methods=['*'],
allow_headers=['*'],
)
# app.add_middleware(LoggerMiddleware)
app.add_middleware(LoggerMiddleware)

app.include_router(main_router)

Expand Down

0 comments on commit 4c1d1d1

Please sign in to comment.