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

This commit is contained in:
JustSong 2023-05-17 20:20:48 +08:00
parent cc1ef2ffd5
commit ad01e1f3b3

View File

@ -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")