[ANY] Изменен формат вывола логов DirWatcher ля отладки

This commit is contained in:
Gravit 2019-03-03 18:14:22 +07:00
parent c62a3865dd
commit 72d2f1d995

View file

@ -121,8 +121,8 @@ private void processKey(WatchKey key) throws IOException {
// Resolve paths and verify is not exclusion // Resolve paths and verify is not exclusion
Path path = watchDir.resolve((Path) event.context()); Path path = watchDir.resolve((Path) event.context());
LogHelper.debug("DirWatcher event %s", path.toString());
Deque<String> stringPath = toPath(dir.relativize(path)); Deque<String> stringPath = toPath(dir.relativize(path));
LogHelper.debug("DirWatcher event %s", String.join("/", stringPath));
if (matcher != null && !matcher.shouldVerify(stringPath)) if (matcher != null && !matcher.shouldVerify(stringPath))
continue; // Exclusion; should not be verified continue; // Exclusion; should not be verified