From f2968c920ebfb7e72acd3a50424609ed374277cd Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Fri, 8 Dec 2017 17:58:53 -0500 Subject: [PATCH] Don't print an error when we can't resolve an image Resolving an image to an ID is used to check if it's present in local storage, and it's not appropriate to log an error in those cases. Signed-off-by: Nalin Dahyabhai --- storage/storage_reference.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/storage_reference.go b/storage/storage_reference.go index 8ac354194f..2cbfc1d255 100644 --- a/storage/storage_reference.go +++ b/storage/storage_reference.go @@ -71,7 +71,7 @@ func (s *storageReference) resolveImage() (*storage.Image, error) { } } if s.id == "" { - logrus.Errorf("reference %q does not resolve to an image ID", s.StringWithinTransport()) + logrus.Debugf("reference %q does not resolve to an image ID", s.StringWithinTransport()) return nil, ErrNoSuchImage } img, err := s.transport.store.Image(s.id)