Add more logging

This commit is contained in:
Lorenzo Bolla
2021-10-08 11:19:54 +02:00
parent 3e06af8515
commit b5d90b7b13

View File

@@ -67,6 +67,8 @@ func (d *GrabDownloader) DownloadWithChecksum(ctx context.Context, url string, d
}
func (d *GrabDownloader) log(msg string, a ...interface{}) {
// TODO don't long to stdout
fmt.Printf(msg, a...)
if d.progress != nil {
d.progress.Printf(msg, a...)
}