feat: debug logging for download
This commit is contained in:
parent
5975898225
commit
804b6b56ba
4
cache/cache.go
vendored
4
cache/cache.go
vendored
@ -49,6 +49,8 @@ func DownloadQemuImage(path, file string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Debug().Msgf("download qemu image from %s", fileurl)
|
||||
|
||||
resp, err := grab.Get(tmp, fileurl)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("Cannot download %s. It looks like you need "+
|
||||
@ -77,6 +79,8 @@ func DownloadDebianCache(cachePath string) (err error) {
|
||||
return
|
||||
}
|
||||
|
||||
log.Debug().Msgf("download debian cache from %s", fileurl)
|
||||
|
||||
resp, err := grab.Get(tmp, fileurl)
|
||||
if err != nil {
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user