summaryrefslogtreecommitdiff
path: root/libpod/image/pull.go
diff options
context:
space:
mode:
authorMatthew Heon <mheon@redhat.com>2018-09-05 11:01:24 -0400
committerAtomic Bot <atomic-devel@projectatomic.io>2018-09-05 23:38:28 +0000
commit490cc82d0b48f118b32525b568b3ed5e1fc82973 (patch)
treef0c51b9d6c5b3ea9adc2c2ce7fb0caa8ea176521 /libpod/image/pull.go
parent9ae6d773b4e6d036d58d3bf7576cc91f16b4f68d (diff)
downloadpodman-490cc82d0b48f118b32525b568b3ed5e1fc82973.tar.gz
podman-490cc82d0b48f118b32525b568b3ed5e1fc82973.tar.bz2
podman-490cc82d0b48f118b32525b568b3ed5e1fc82973.zip
Print errors from individual pull attempts
Right now, we don't print errors from c/image while trying to pull images. This prints the errors when log-level=debug is set so we can debug errors while pulling. Signed-off-by: Matthew Heon <mheon@redhat.com> Closes: #1409 Approved by: baude
Diffstat (limited to 'libpod/image/pull.go')
-rw-r--r--libpod/image/pull.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/libpod/image/pull.go b/libpod/image/pull.go
index d8483878e..ce3e8e73e 100644
--- a/libpod/image/pull.go
+++ b/libpod/image/pull.go
@@ -254,6 +254,7 @@ func (ir *Runtime) doPullImage(ctx context.Context, sc *types.SystemContext, goa
io.WriteString(writer, fmt.Sprintf("Trying to pull %s...", imageInfo.image))
}
if err = cp.Image(ctx, policyContext, imageInfo.dstRef, imageInfo.srcRef, copyOptions); err != nil {
+ logrus.Debugf("Error pulling image ref %s: %v", imageInfo.srcRef.StringWithinTransport(), err)
if writer != nil {
io.WriteString(writer, "Failed\n")
}