Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
陈曦
sub2api
Commits
3932bf03
Commit
3932bf03
authored
Jan 04, 2026
by
song
Browse files
fix: 转发失败日志添加账户ID信息
parent
ce242232
Changes
2
Hide whitespace changes
Inline
Side-by-side
backend/internal/handler/gateway_handler.go
View file @
3932bf03
...
...
@@ -373,7 +373,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
continue
}
// 错误响应已在Forward中处理,这里只记录日志
log
.
Printf
(
"Forward request failed: %v"
,
err
)
log
.
Printf
(
"
Account %d:
Forward request failed: %v"
,
account
.
ID
,
err
)
return
}
...
...
backend/internal/handler/openai_gateway_handler.go
View file @
3932bf03
...
...
@@ -225,7 +225,7 @@ func (h *OpenAIGatewayHandler) Responses(c *gin.Context) {
continue
}
// Error response already handled in Forward, just log
log
.
Printf
(
"Forward request failed: %v"
,
err
)
log
.
Printf
(
"
Account %d:
Forward request failed: %v"
,
account
.
ID
,
err
)
return
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment