E564 chore: 优化 fastapi 响应 500 日志输出 · TTB-Network/python-openbmclapi@c50b6d5 · GitHub
[go: up one dir, main page]

Skip to content

Commit c50b6d5

Browse files
committed
chore: 优化 fastapi 响应 500 日志输出
1 parent 4ed626c commit c50b6d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ async def auth_middleware(request: fastapi.Request, call_next):
231231
try:
232232
result = await call_next(request)
233233
except:
234-
logger.debug_traceback()
234+
logger.traceback()
235235
result = fastapi.responses.Response(
236236
status_code=500,
237237
content="Internal Server Error"

0 commit comments

Comments
 (0)
0