mirror of
https://github.com/RatzzFatzz/MKVAudioSubtitleChanger.git
synced 2026-02-11 02:05:56 +01:00
Improve logging when ignoring and excluding files
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user