Commit 3932bf03 authored by song's avatar song
Browse files

fix: 转发失败日志添加账户ID信息

parent ce242232
...@@ -373,7 +373,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) { ...@@ -373,7 +373,7 @@ func (h *GatewayHandler) Messages(c *gin.Context) {
continue continue
} }
// 错误响应已在Forward中处理,这里只记录日志 // 错误响应已在Forward中处理,这里只记录日志
log.Printf("Forward request failed: %v", err) log.Printf("Account %d: Forward request failed: %v", account.ID, err)
return return
} }
......
...@@ -225,7 +225,7 @@ func (h *OpenAIGatewayHandler) Responses(c *gin.Context) { ...@@ -225,7 +225,7 @@ func (h *OpenAIGatewayHandler) Responses(c *gin.Context) {
continue continue
} }
// Error response already handled in Forward, just log // 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 return
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment