fix: record upstream error message in backend image log other data
Docker Build / Build and Push Docker Image (push) Successful in 4m1s

Pass errMsg into other[error_message] so it persists to the database and can be queried by the frontend.
This commit is contained in:
2026-06-21 23:31:57 +08:00
parent 37da5de9e4
commit d151b72fa6
+1
View File
@@ -210,6 +210,7 @@ func logImageError(c *gin.Context, info *relaycommon.RelayInfo, request *dto.Ima
other["request_path"] = c.Request.URL.Path
}
other["is_image_error"] = true
other["error_message"] = errMsg
model.RecordConsumeLog(c, info.UserId, model.RecordConsumeLogParams{
ChannelId: info.ChannelId,