From 63ea24a29b4de828878065e894534d1663b1e335 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Fri, 6 Sep 2024 16:25:51 -0400 Subject: [PATCH] chore: reduce logging level for unknown errors in generic cataloger Signed-off-by: Keith Zantow --- syft/pkg/cataloger/generic/cataloger.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/syft/pkg/cataloger/generic/cataloger.go b/syft/pkg/cataloger/generic/cataloger.go index 0fba7cf7a79..f955ed35076 100644 --- a/syft/pkg/cataloger/generic/cataloger.go +++ b/syft/pkg/cataloger/generic/cataloger.go @@ -199,7 +199,8 @@ func invokeParser(ctx context.Context, resolver file.Resolver, location file.Loc discoveredPackages, discoveredRelationships, err := parser(ctx, resolver, env, file.NewLocationReadCloser(location, contentReader)) if err != nil { - logger.WithFields("location", location.RealPath, "error", err).Warnf("cataloger returned errors") + // these errors are propagated up, and are likely to be coordinate errors + logger.WithFields("location", location.RealPath, "error", err).Trace("cataloger returned errors") } return discoveredPackages, discoveredRelationships, err