Skip to content

Commit 5217c95

Browse files
authored
Fix summary default in opera log middleware (#809)
1 parent ea973ca commit 5217c95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/middleware/opera_log_middleware.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ async def dispatch(self, request: Request, call_next: Any) -> Response:
7474

7575
# 此信息只能在请求后获取
7676
_route = request.scope.get('route')
77-
summary = getattr(_route, 'summary', '')
77+
summary = getattr(_route, 'summary') or ''
7878

7979
try:
8080
# 此信息来源于 JWT 认证中间件

0 commit comments

Comments
 (0)