mirror of
https://github.com/containrrr/watchtower.git
synced 2025-09-22 05:40:50 +02: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 newContainerID, err := client.StartContainer(container); err != nil {
|
||||
log.Info("Error occurred while starting the container.")
|
||||
log.Error(err)
|
||||
return err
|
||||
} else if container.ToRestart() && params.LifecycleHooks {
|
||||
lifecycle.ExecutePostUpdateCommand(client, newContainerID)
|
||||
log.Info("Container updated successfully.")
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue