Skip to content

Commit 123f612

Browse files
cfergeauopenshift-merge-robot
authored andcommitted
machine: Print log when downloading bundle
Running `crc start` without the expected bundle available shows a download progress bar without saying first what it's doing: INFO Checking if crc daemon plist file is present and loaded 1.73 GiB / 3.09 GiB [------------------>___________________] This commit adds a "Downloading .." line before to inform the user about this lengthy operation.
1 parent a5f90a2 commit 123f612

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

pkg/crc/machine/start.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ func getCrcBundleInfo(preset crcPreset.Preset, bundleName, bundlePath string) (*
4949
return bundleInfo, nil
5050
}
5151
logging.Debugf("Failed to load bundle %s: %v", bundleName, err)
52+
logging.Infof("Downloading bundle: %s...", bundleName)
5253
bundlePath, err = bundle.Download(preset, bundlePath)
5354
if err != nil {
5455
return nil, err

pkg/crc/preflight/preflight_checks_common.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ func fixBundleExtracted(bundlePath string, preset crcpreset.Preset) func() error
9898
}
9999

100100
var err error
101+
logging.Infof("Downloading bundle: %s...", bundlePath)
101102
if bundlePath, err = bundle.Download(preset, bundlePath); err != nil {
102103
return err
103104
}

0 commit comments

Comments
 (0)