Skip to content

fix: add account and proxy details to forward_failed log#1300

Merged
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
xilu0:fix/forward-failed-log-missing-account-proxy-info
Mar 27, 2026
Merged

fix: add account and proxy details to forward_failed log#1300
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
xilu0:fix/forward-failed-log-missing-account-proxy-info

Conversation

@xilu0
Copy link
Contributor

@xilu0 xilu0 commented Mar 25, 2026

Summary

  • gateway.forward_failed 日志之前只有 account_id,排查时需要查库才能知道是哪个账号、哪个代理出了问题
  • 新增 account_nameaccount_platform 字段,以及代理详情(proxy_idproxy_nameproxy_hostproxy_port
  • 修复了两处 gateway.forward_failed 日志(OpenAI 和 Anthropic 转发路径)

Test plan

  • 触发转发失败场景,验证日志中包含账号名称和代理信息
  • 验证无代理账号的转发失败日志不包含代理字段

🤖 Generated with Claude Code

The forward_failed error log only included account_id, making it
difficult to identify which account and proxy caused the failure
without querying the database. Add account_name, account_platform,
and proxy details (id, name, host, port) to the log fields.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Wei-Shaw Wei-Shaw merged commit 20544a4 into Wei-Shaw:main Mar 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants