Print out first 20 vulnerable & internal callables for debugging
@@ -339,9 +339,11 @@ public class VulnerabilityCacheProcessorPlugin extends Plugin {
assert graph != null;
var vulnerabilities = kbDao.findVulnerableCallables(vulnerableDependencies, graph.nodes());
logger.info("Graph contains vulnerable callables: " + vulnerabilities.keySet().size());
+ logger.info("First 20: " + vulnerabilities.keySet().stream().limit(20).collect(Collectors.toList()));
var internalCallables = kbDao.getPackageInternalCallableIDs(revision.product().toString(), revision.version.toString(), graph.nodes());
logger.info("Graph contains internal callable: " + internalCallables.size());
+ logger.info("First 20: " + internalCallables.stream().limit(20).collect(Collectors.toList()));
// Find all paths between any internal node and any vulnerable node in the graph
