Improve logging when ignoring and excluding files

This commit is contained in:
RatzzFatzz
2025-12-14 19:11:49 +01:00
parent 7427e3aa27
commit a5b24e907d

View File

@@ -28,6 +28,7 @@ public class FileFilter {
public boolean accept(File pathName, Set<String> fileExtensions) { public boolean accept(File pathName, Set<String> fileExtensions) {
// Ignore files irrelevant for statistics // Ignore files irrelevant for statistics
if (!hasProperFileExtension(pathName, new HashSet<>(fileExtensions))) { if (!hasProperFileExtension(pathName, new HashSet<>(fileExtensions))) {
log.debug("Ignored {}", pathName);
return false; return false;
} }
@@ -35,6 +36,7 @@ public class FileFilter {
if (!hasMatchingPattern(pathName) if (!hasMatchingPattern(pathName)
|| !isNewer(pathName) || !isNewer(pathName)
|| isExcluded(pathName, new HashSet<>(excluded))) { || isExcluded(pathName, new HashSet<>(excluded))) {
log.debug("Excluded {}", pathName);
ResultStatistic.getInstance().excluded(); ResultStatistic.getInstance().excluded();
return false; return false;
} }