mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
adding log error massage #1290
This commit is contained in:
parent
284066a39d
commit
de519f01c2
1 changed files with 2 additions and 0 deletions
|
|
@ -222,10 +222,12 @@ func restartStaleContainer(container types.Container, client container.Client, p
|
||||||
|
|
||||||
if !params.NoRestart {
|
if !params.NoRestart {
|
||||||
if newContainerID, err := client.StartContainer(container); err != nil {
|
if newContainerID, err := client.StartContainer(container); err != nil {
|
||||||
|
log.Info("Error occurred while starting the container.")
|
||||||
log.Error(err)
|
log.Error(err)
|
||||||
return err
|
return err
|
||||||
} else if container.ToRestart() && params.LifecycleHooks {
|
} else if container.ToRestart() && params.LifecycleHooks {
|
||||||
lifecycle.ExecutePostUpdateCommand(client, newContainerID)
|
lifecycle.ExecutePostUpdateCommand(client, newContainerID)
|
||||||
|
log.Info("Container updated successfully.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue