// Cannot move into read from no index
if (State.NONE == this.state && State.READ == state) {
- getLogger().info("Cannot move into read from no index in {} with state {}", this, state);
+ if (getLogger().isDebugEnabled())
+ getLogger().debug("Cannot move into read from no index in {} with state {}", this, state);
return;
}
// Cannot move into write from no index
if (State.NONE == this.state && State.WRITE == state) {
- getLogger().info("Cannot move into write from no index in {} with state {}", this, state);
+ if (getLogger().isDebugEnabled())
+ getLogger().debug("Cannot move into write from no index in {} with state {}", this, state);
return;
}
if (overwrite) {
if (Files.exists(indexPath)) {
mon.subTask("Erasing previous index");
- getLogger().info("Erasing previous index {}", indexPath.toAbsolutePath());
+ if (getLogger().isDebugEnabled())
+ getLogger().debug("Erasing previous index {}", indexPath.toAbsolutePath());
FileUtils.delete(indexPath);
}
}