[virt-launcher]: Stop logging successful shutdown when it isn't true
Small fix: today we log "Successfully signaled graceful shutdown"
even if graceful shutdown is now successful.
@@ -459,10 +459,10 @@ func main() {
if err != nil {
log.Log.Reason(err).Errorf("Gave up attempting to signal graceful shutdown")
- }
-
+ } else {
log.Log.Object(vmi).Info("Successfully signaled graceful shutdown")
}
+ }
finalShutdownCallback := func(pid int) {
err := domainManager.KillVMI(vmi)
