mirror of https://github.com/containers/image.git
storage: log image-not-resolving at debug level, not error
Log the message about a given reference not being resolvable to an image ID at the debug level rather than as an error, and wrap the error that we return in case the caller wants to relay the reference's value back as part of the error. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
This commit is contained in:
parent
3d0304a021
commit
179c5ae10a
|
|
@ -71,8 +71,8 @@ func (s *storageReference) resolveImage() (*storage.Image, error) {
|
|||
}
|
||||
}
|
||||
if s.id == "" {
|
||||
logrus.Errorf("reference %q does not resolve to an image ID", s.StringWithinTransport())
|
||||
return nil, ErrNoSuchImage
|
||||
logrus.Debugf("reference %q does not resolve to an image ID", s.StringWithinTransport())
|
||||
return nil, errors.Wrapf(ErrNoSuchImage, "reference %q does not resolve to an image ID", s.StringWithinTransport())
|
||||
}
|
||||
img, err := s.transport.store.Image(s.id)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in New Issue