mirror of
https://github.com/ThePhaseless/Byparr.git
synced 2026-11-26 16:41:07 +00:00
fix(deps): pin dependencies (#446)
* fix(deps): pin dependencies * fix: stop passing log_level to FastAPI FastAPI never had a log_level parameter; it went into **extra and was ignored until 0.162 removed **extra, where it raises TypeError at import. uvicorn.run already receives the log level. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: ThePhaseless <kukubaorch@gmail.com>
This commit is contained in:
1 parent
406ad428c4
commit
93ffe3ec0f
6 files changed
+20
-20
No files matched your search
@@ -27,7 +27,7 @@ async def lifespan(_: FastAPI) -> AsyncGenerator[None]:
|
||||
yield
|
||||
|
||||
|
||||
app = FastAPI(debug=LOG_LEVEL == logging.DEBUG, log_level=LOG_LEVEL, lifespan=lifespan)
|
||||
app = FastAPI(debug=LOG_LEVEL == logging.DEBUG, lifespan=lifespan)
|
||||
app.add_middleware(GZipMiddleware)
|
||||
app.add_middleware(LogRequest)
|
||||
|
||||
|
||||
Reference in new issue
Block a user