adding log error massage #1290

This commit is contained in:
Gaurang Kudale 2023-10-06 20:30:01 +05:30
parent 284066a39d
commit de519f01c2

View file

@ -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