Skip to content
Snippets Groups Projects
Commit 4e718e5d authored by Florian Angerer's avatar Florian Angerer
Browse files

Increase verbosity.

parent 9cb9739a
No related branches found
No related tags found
No related merge requests found
......@@ -69,20 +69,20 @@ public abstract class AbstractDumper {
}
protected static Collection<Problem> eliminateRedundantProblems(Collection<Problem> problems) {
LOGGER.fine("Building detector hierarchy.");
LOGGER.info("Building detector hierarchy.");
Set<Detector<?>> collect = problems.stream().map(p -> p.getDetector()).collect(Collectors.toSet());
Map<Detector<?>, Collection<Detector<?>>> hierarchy = new HashMap<>();
for (Detector<?> detector : collect) {
hierarchy.put(detector, collectChildrenRecursive(detector));
}
LOGGER.fine("Grouping problems by detector.");
LOGGER.info("Grouping problems by detector.");
Map<Detector<?>, List<Problem>> collect2 = problems.stream().collect(Collectors.groupingBy(p -> p.getDetector()));
LOGGER.fine("Eliminating redundnat problems.");
LOGGER.info("Eliminating redundnat problems.");
List<Problem> cleaned = problems.stream().filter(p -> isIncluded(p, hierarchy, collect2)).collect(Collectors.toList());
assert new HashSet<>(cleaned).size() == cleaned.size();
LOGGER.fine(String.format("Eliminated %d redundant problems.", (problems.size() - cleaned.size())));
LOGGER.info(String.format("Eliminated %d redundant problems.", (problems.size() - cleaned.size())));
return cleaned;
}
......
......@@ -122,14 +122,14 @@ public class HTMLDumper extends AbstractDumper {
}
private static Collection<Problem> collectAllProblems(Collection<RPackage> pkgs) {
LOGGER.fine(String.format("Collecting problems for %d test runs.", pkgs.size()));
LOGGER.info(String.format("Collecting problems for %d test runs.", pkgs.size()));
Collection<Problem> problems = new ArrayList<>();
for (RPackage pkg : pkgs) {
for (RPackageTestRun run : pkg.getTestRuns()) {
problems.addAll(run.getProblems());
}
}
LOGGER.fine(String.format("Collected %d problems.", problems.size()));
LOGGER.info(String.format("Collected %d problems.", problems.size()));
return problems;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment