From ad01e1f3b3423c9f7f66782736f83eecfacded15 Mon Sep 17 00:00:00 2001 From: JustSong Date: Wed, 17 May 2023 20:20:48 +0800 Subject: [PATCH] fix: fix error log not recorded (close #83) --- controller/relay.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/controller/relay.go b/controller/relay.go index 5fed1b44..a24b7c5b 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -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")