mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-17 16:43:54 +00:00
fix: fix error log not recorded (close #83)
This commit is contained in:
@@ -77,6 +77,8 @@ func Relay(c *gin.Context) {
|
||||
"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 {
|
||||
channelId := c.GetInt("channel_id")
|
||||
channelName := c.GetString("channel_name")
|
||||
|
Reference in New Issue
Block a user