From: jsimomaa Date: Wed, 28 Feb 2018 11:56:15 +0000 (+0200) Subject: Remove debug printing from indexing & change debugging level to INFO X-Git-Tag: v1.43.0~136^2~571 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F15%2F1515%2F2;p=simantics%2Fplatform.git Remove debug printing from indexing & change debugging level to INFO refs #7785 Change-Id: Idc1bb5aba5dfa217449e2c587e03d67016b8d8b1 --- 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..c70650ede 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); } } diff --git a/bundles/org.simantics.logback.configuration/logback.xml b/bundles/org.simantics.logback.configuration/logback.xml index e217dfa89..41d963a32 100644 --- a/bundles/org.simantics.logback.configuration/logback.xml +++ b/bundles/org.simantics.logback.configuration/logback.xml @@ -31,7 +31,7 @@ - +