fix: fix error log not recorded (close #83)
This commit is contained in:
parent
cc1ef2ffd5
commit
ad01e1f3b3
@ -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")
|
||||||
|
Loading…
Reference in New Issue
Block a user