diff --git a/cli/internal/cmd/upgradecheck.go b/cli/internal/cmd/upgradecheck.go index 42f6cd70ecf..70e4702ed22 100644 --- a/cli/internal/cmd/upgradecheck.go +++ b/cli/internal/cmd/upgradecheck.go @@ -363,14 +363,9 @@ func (v *versionCollector) newMeasurements(ctx context.Context, csp cloudprovide continue } upgrades[shortPath] = measurements + v.log.Debug("Compatible image measurement found", shortPath, measurements.String()) } - compatibleMeasurements := "" - for path, measurements := range upgrades { - compatibleMeasurement := measurements.String() - compatibleMeasurements += fmt.Sprintf("\t%q:\n%s", path, compatibleMeasurement) - } - v.log.Debug(fmt.Sprintf("Compatible image measurements are:\n%s", compatibleMeasurements)) - + return upgrades, nil }