Skip to content

Commit

Permalink
chore: reduce logging level for unknown errors in generic cataloger
Browse files Browse the repository at this point in the history
Signed-off-by: Keith Zantow <[email protected]>
  • Loading branch information
kzantow committed Sep 6, 2024
1 parent 711c6e7 commit 63ea24a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion syft/pkg/cataloger/generic/cataloger.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 63ea24a

Please sign in to comment.