Skip to content
This repository was archived by the owner on Dec 19, 2019. It is now read-only.

Commit 9aeef42

Browse files
authored
Merge pull request #97 from s-urbaniak/lognoise-96
image: reduce log noise, if original annotation is not present in image
2 parents 4d8f0e2 + d5a915d commit 9aeef42

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

rktlet/image/imagestore.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,11 @@ func (s *ImageStore) getImageManifest(id string) (*appcschema.ImageManifest, err
171171
func (s *ImageStore) getImageRealName(manifest *appcschema.ImageManifest, default_ string) string {
172172
originalName, ok := manifest.GetAnnotation("appc.io/docker/originalname")
173173
if !ok {
174-
glog.Warningf("image %q does not have originalname annotation", manifest.Name.String())
174+
glog.V(3).Infof(
175+
"image %q does not have originalname annotation, reverting to default %q",
176+
manifest.Name.String(),
177+
default_,
178+
)
175179
return default_
176180
}
177181
// Normalize in case someone typed `rkt fetch docker://image-without-tag`

0 commit comments

Comments
 (0)