X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.db.indexing%2Fsrc%2Forg%2Fsimantics%2Fdb%2Findexing%2FIndexedRelationsSearcherBase.java;h=71db7f6168ac525d69cf1356329f1af081068792;hb=3826e289058a51d09310b7ba1251e959dc0ed3d0;hp=9441bb75b8ee5a4a3c7fd419ac725e70778cd3ca;hpb=8b8630b93f8e4ec88a8a4eb53b55031407deedc0;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java index 9441bb75b..71db7f616 100644 --- a/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java +++ b/bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java @@ -160,12 +160,14 @@ abstract public class IndexedRelationsSearcherBase { // 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; } @@ -627,7 +629,8 @@ abstract public class IndexedRelationsSearcherBase { 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); } } @@ -695,10 +698,10 @@ abstract public class IndexedRelationsSearcherBase { } } } - - s.release(); } catch (DatabaseException e) { throw new IllegalStateException(e); + } finally { + s.release(); } }); }