Commit acd224fe authored by duanjinfei's avatar duanjinfei

add log print

parent 6e81f23b
...@@ -72,6 +72,7 @@ func (d *DockerOp) GetContainerSign(taskMsg *nodemanagerv1.PushTaskMessage, task ...@@ -72,6 +72,7 @@ func (d *DockerOp) GetContainerSign(taskMsg *nodemanagerv1.PushTaskMessage, task
log.Errorf("failed to unmarshal task cmd: %s", err.Error()) log.Errorf("failed to unmarshal task cmd: %s", err.Error())
return nil return nil
} }
log.WithField("imageName", taskCmd.ImageName).WithField("url", d.SignApi[taskCmd.ImageName]).Info("container sign")
request, err := http.NewRequest("POST", d.SignApi[taskCmd.ImageName], bytes.NewReader(body)) request, err := http.NewRequest("POST", d.SignApi[taskCmd.ImageName], bytes.NewReader(body))
if err != nil { if err != nil {
log.Error("New http request failed: ", err) log.Error("New http request failed: ", err)
......
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