[ADD] add some debug messages

This commit is contained in:
GLYASAI 2018-12-07 11:52:48 +08:00
parent e9307cffc2
commit ec9c035237

View File

@ -102,9 +102,11 @@ func ImagePull(dockerCli *client.Client, image string, username, password string
if err == io.EOF { if err == io.EOF {
break break
} }
logrus.Debugf("error decoding jm(JSONMessage): %v", err)
return nil, err return nil, err
} }
if jm.Error != nil { if jm.Error != nil {
logrus.Debugf("error pulling image: %v", jm.Error)
return nil, jm.Error return nil, jm.Error
} }
if logger != nil { if logger != nil {