Skip to content

Commit

Permalink
adding log error massage #1290
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurangkudale committed Oct 6, 2023
1 parent 284066a commit de519f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/actions/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de519f0

Please sign in to comment.