提交 79d7f8a7 编写于 作者: T tstromberg

Log caching errors

上级 3b198d19
......@@ -76,6 +76,7 @@ func CacheImages(images []string, cacheDir string) error {
dst := filepath.Join(cacheDir, image)
dst = sanitizeCacheDir(dst)
if err := CacheImage(image, dst); err != nil {
glog.Errorf("CacheImage %s -> %s failed: %v", image, dst, err)
return errors.Wrapf(err, "caching image %s", dst)
}
glog.Infof("CacheImage %s -> %s succeeded", image, dst)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册