From 490cc82d0b48f118b32525b568b3ed5e1fc82973 Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Wed, 5 Sep 2018 11:01:24 -0400 Subject: 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 Closes: #1409 Approved by: baude --- libpod/image/pull.go | 1 + 1 file changed, 1 insertion(+) (limited to 'libpod') 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") } -- cgit v1.2.3-54-g00ecf