Browse Source

增加打印。

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.10.1^2
zouap 3 years ago
parent
commit
19cd214b4f
1 changed files with 5 additions and 3 deletions
  1. +5
    -3
      modules/aisafety/resty.go

+ 5
- 3
modules/aisafety/resty.go View File

@@ -204,12 +204,14 @@ func GetTaskStatus(jobID string) error {
Get(HOST + "/v1/external/eval-standard/query?serialNo=" + jobID)

log.Info("url=" + HOST + "/v1/external/eval-standard/query?serialNo=" + jobID)
if err != nil {
return fmt.Errorf("resty GetJob: %v", err)
}

responseStr := string(res.Body())
log.Info("GetTaskStatus responseStr=" + responseStr + " res code=" + fmt.Sprint(res.StatusCode()))

if err != nil {
log.Info("error =" + err.Error())
return fmt.Errorf("resty GetJob: %v", err)
}

return nil
}

Loading…
Cancel
Save