Prevent log output from mixing

This commit is contained in:
Roman Shevchenko
2012-08-20 17:31:26 +04:00
parent 5475699b0b
commit 2f48cb7994
@@ -448,7 +448,12 @@ public class FileWatcher {
kind = ChangeKind.valueOf(command);
}
catch (IllegalArgumentException e) {
LOG.error("Illegal watcher command: " + command);
if (LOG.isDebugEnabled()) {
LOG.debug("Illegal watcher command: " + command);
}
else {
LOG.error("Illegal watcher command: " + command);
}
continue;
}