添加中文字体
This commit is contained in:
@@ -56,6 +56,9 @@ def create_app() -> FastAPI:
|
||||
start = time.time()
|
||||
response = await call_next(request)
|
||||
elapsed = time.time() - start
|
||||
# 静默健康检查探针
|
||||
if request.url.path == "/" and request.method == "GET":
|
||||
return response
|
||||
logger.info(f"{request.method} {request.url.path} -> {response.status_code} ({elapsed:.3f}s)")
|
||||
return response
|
||||
|
||||
|
||||
Reference in New Issue
Block a user