From ca1eb76c7e8f1c4d5f519b3338bea557759b2b56 Mon Sep 17 00:00:00 2001 From: Andrei Aaron Date: Fri, 25 Oct 2024 23:39:05 +0300 Subject: [PATCH] chore: less confusing warning message when unexpected media type is found in index manifest list (#2746) Signed-off-by: Andrei Aaron --- pkg/storage/common/common.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/storage/common/common.go b/pkg/storage/common/common.go index e28239d5..022e9680 100644 --- a/pkg/storage/common/common.go +++ b/pkg/storage/common/common.go @@ -549,9 +549,10 @@ func IsBlobReferencedInImageIndex(imgStore storageTypes.ImageStore, repo string, case ispec.MediaTypeImageManifest: found, _ = isBlobReferencedInImageManifest(imgStore, repo, digest, desc.Digest, log) default: - log.Warn().Str("mediatype", desc.MediaType).Msg("unknown media-type") // should return true for digests found in index.json even if we don't know it's mediatype if digest == desc.Digest { + log.Debug().Str("mediatype", desc.MediaType).Str("digest", digest.String()). + Msg("unexpected media-type found in image index manifest list") found = true } }