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)