Skip to content

Commit

Permalink
fixed fastapi profiled init var
Browse files Browse the repository at this point in the history
  • Loading branch information
joeygrable94 committed Sep 30, 2024
1 parent 606908d commit cf95f07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/api/middleware/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from starlette.middleware.cors import CORSMiddleware
from starlette.middleware.sessions import SessionMiddleware

from app.api.deps.get_client_ip import get_request_client_ip
# from app.api.deps.get_client_ip import get_request_client_ip
from app.core.config import settings


Expand All @@ -16,7 +16,7 @@ def configure_middleware(app: FastAPI) -> None:
app.add_middleware(
PyInstrumentProfilerMiddleware,
# Required to output the profile on server shutdown
server_app=app,
server_app=app.router,
profiler_output_type="html",
# Set to True to show request profile on stdout on each request
is_print_each_request=False,
Expand Down

0 comments on commit cf95f07

Please sign in to comment.