Skip to content

Commit 08a3f8f

Browse files
authored
Change log level of overflow rescanner when directory doesn't exist (#80)
* Change log level of overflow rescan failures from `ERROR` to `DEBUG` (as they aren't really errors, but still worth reporting) * Retrigger checks
1 parent c482cb0 commit 08a3f8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/engineering/swat/watch/impl/overflows/BaseFileVisitor.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,22 +65,22 @@ public void walkFileTree() {
6565
try {
6666
Files.walkFileTree(path, options, maxDepth, this);
6767
} catch (IOException e) {
68-
logger.error("Could not walk: {} ({})", path, e);
68+
logger.debug("Overflow rescanner could not walk: {} ({})", path, e);
6969
}
7070
}
7171

7272
// -- SimpleFileVisitor --
7373

7474
@Override
7575
public FileVisitResult visitFileFailed(Path file, IOException exc) throws IOException {
76-
logger.error("Could not walk regular file: {} ({})", file, exc);
76+
logger.debug("Overflow rescanner could not walk regular file: {} ({})", file, exc);
7777
return FileVisitResult.CONTINUE;
7878
}
7979

8080
@Override
8181
public FileVisitResult postVisitDirectory(Path dir, IOException exc) throws IOException {
8282
if (exc != null) {
83-
logger.error("Could not walk directory: {} ({})", dir, exc);
83+
logger.debug("Overflow rescanner could not walk directory: {} ({})", dir, exc);
8484
}
8585
return FileVisitResult.CONTINUE;
8686
}

0 commit comments

Comments
 (0)