Commit 14bba55d by JustSong

fix: fix error log not recorded (close #83)

parent f122a8c5
...@@ -77,6 +77,8 @@ func Relay(c *gin.Context) { ...@@ -77,6 +77,8 @@ func Relay(c *gin.Context) {
"type": "one_api_error", "type": "one_api_error",
}, },
}) })
channelId := c.GetInt("channel_id")
common.SysError(fmt.Sprintf("Relay error: %s, channel id: %d", err.Error(), channelId))
if common.AutomaticDisableChannelEnabled { if common.AutomaticDisableChannelEnabled {
channelId := c.GetInt("channel_id") channelId := c.GetInt("channel_id")
channelName := c.GetString("channel_name") channelName := c.GetString("channel_name")
......
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 sign in to comment