From 86a372422ad1eb876da520d34871c8034f528bcc Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Wed, 28 Feb 2018 13:56:15 +0200 Subject: [PATCH] Remove debug printing from indexing & change debugging level to INFO refs #7785 Change-Id: Idc1bb5aba5dfa217449e2c587e03d67016b8d8b1 --- .../db/indexing/IndexedRelationsSearcherBase.java | 9 ++++++--- bundles/org.simantics.logback.configuration/logback.xml | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) 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 @@ - + -- 2.43.2