diff --git a/internal/pkg/agent/cmd/watch.go b/internal/pkg/agent/cmd/watch.go index c976b966db0..b3c29509471 100644 --- a/internal/pkg/agent/cmd/watch.go +++ b/internal/pkg/agent/cmd/watch.go @@ -116,7 +116,7 @@ func watchCmd(log *logp.Logger, cfg *configuration.Configuration) error { removeMarker := !isWindows() err = upgrade.Cleanup(log, marker.Hash, removeMarker, false) if err != nil { - log.Error("cleanup failed", err) + log.Error("cleanup after successful watch failed", err) } return err }