Commit e94e5b3a authored by duanjinfei's avatar duanjinfei

add file cache resp body log

parent 6be8291f
......@@ -510,6 +510,7 @@ func (t *TaskHandler) uploadOSS(taskId string, queries string, decodedImage []by
log.WithError(err).Error("Error read oss resp body failed")
return "", err
}
log.WithField("res", string(ossRespBody)).Info("file cache resp body")
fileCacheRes := &models.FileCacheResult{}
err = json.Unmarshal(ossRespBody, fileCacheRes)
if err != nil {
......
......@@ -164,6 +164,6 @@ func EncodeJsonEscapeHTML(apiRes any) []byte {
log.WithError(err).Error("encoder Encode")
return apiResBody.Bytes()
}
log.WithField("apiResBody", string(apiResBody.Bytes())).Info("model resp")
//log.WithField("apiResBody", string(apiResBody.Bytes())).Info("model resp")
return apiResBody.Bytes()
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment