1
0

feat: debug logging for download

This commit is contained in:
dump_stack() 2023-05-13 12:56:54 +00:00
parent 5975898225
commit 804b6b56ba
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

4
cache/cache.go vendored
View File

@ -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