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

This commit is contained in:
JustSong
2023-05-17 20:20:48 +08:00
parent f122a8c53d
commit 14bba55d28

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