From 391759dc16378d1b40379d74bc5bca31c9b68bda Mon Sep 17 00:00:00 2001 From: JustSong Date: Tue, 28 May 2024 01:29:57 +0800 Subject: [PATCH] chore: update log format --- controller/relay.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/relay.go b/controller/relay.go index 179ce6de..5d8ac690 100644 --- a/controller/relay.go +++ b/controller/relay.go @@ -118,7 +118,7 @@ func shouldRetry(c *gin.Context, statusCode int) bool { } func processChannelRelayError(ctx context.Context, userId int, channelId int, channelName string, err *model.ErrorWithStatusCode) { - logger.Errorf(ctx, "relay error (userId #%d channel #%d): %s", userId, channelId, err.Message) + logger.Errorf(ctx, "relay error (channel id %d, user id: %d): %s", channelId, userId, err.Message) // https://platform.openai.com/docs/guides/error-codes/api-errors if monitor.ShouldDisableChannel(&err.Error, err.StatusCode) { monitor.DisableChannel(channelId, channelName, err.Message)