mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-14 06:06:38 +01:00
Improve error reporting
This commit is contained in:
parent
c4efc83875
commit
02bca8d6a4
1 changed files with 2 additions and 0 deletions
|
|
@ -157,10 +157,12 @@ func (client dockerClient) IsContainerStale(c Container) (bool, error) {
|
||||||
Email: email,
|
Email: email,
|
||||||
}
|
}
|
||||||
if err := client.api.PullImage(imageName, &auth); err != nil {
|
if err := client.api.PullImage(imageName, &auth); err != nil {
|
||||||
|
log.Debugf("Error pulling image %s with authentication, %s", imageName, err)
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if err := client.api.PullImage(imageName, nil); err != nil {
|
if err := client.api.PullImage(imageName, nil); err != nil {
|
||||||
|
log.Debugf("Error pulling image %s, %s", imageName, err)
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue