NIHVIVO-2065 downgrade the "warn" level log statement that happens if we fail on the first attempt to delete the search index.
This commit is contained in:
parent
2d6d876267
commit
0055398674
1 changed files with 9 additions and 5 deletions
|
@ -348,15 +348,19 @@ public class LuceneIndexer implements IndexerIface {
|
|||
String[] children = dir.list();
|
||||
for (int i=0; i<children.length; i++) {
|
||||
File child = new File(dir, children[i]);
|
||||
boolean success = deleteDir(child);
|
||||
if (!success) {
|
||||
log.warn("failed to delete " + child.getAbsolutePath());
|
||||
boolean childDeleted = deleteDir(child);
|
||||
if (!childDeleted) {
|
||||
log.debug("failed to delete " + child.getAbsolutePath());
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
// The directory is now empty so delete it
|
||||
return dir.delete();
|
||||
boolean deleted = dir.delete();
|
||||
if (!deleted) {
|
||||
log.debug("failed to delete " + dir.getAbsolutePath());
|
||||
}
|
||||
return deleted;
|
||||
}
|
||||
|
||||
private void checkStartPreconditions() {
|
||||
|
|
Loading…
Add table
Reference in a new issue