1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-31 03:45:17 +00:00

Reduce log verbosity for image extractors (#3764)

This commit is contained in:
Sambhav Kothari 2022-05-02 16:04:19 +01:00 committed by GitHub
parent 45e3bf452a
commit e1ee6e8cbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -245,7 +245,7 @@ func (ctx *context) AddImageInfo(info kubeutils.ImageInfo) error {
func (ctx *context) AddImageInfos(resource *unstructured.Unstructured) error {
log.Log.Info("extracting image info", "obj", resource.UnstructuredContent())
log.Log.V(4).Info("extracting image info", "obj", resource.UnstructuredContent())
images, err := kubeutils.ExtractImagesFromResource(*resource, nil)
if err != nil {
@ -256,7 +256,7 @@ func (ctx *context) AddImageInfos(resource *unstructured.Unstructured) error {
}
ctx.images = images
log.Log.Info("updated image info", "images", images)
log.Log.V(4).Info("updated image info", "images", images)
return addToContext(ctx, images, "images")
}
@ -268,7 +268,7 @@ func (ctx *context) GenerateCustomImageInfo(resource *unstructured.Unstructured,
}
if len(images) == 0 {
logger.Info("no images found", "extractor", imageExtractorConfigs)
logger.V(4).Info("no images found", "extractor", imageExtractorConfigs)
return nil, nil
}