]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Remove debug printing from indexing & change debugging level to INFO 15/1515/2
authorjsimomaa <jani.simomaa@gmail.com>
Wed, 28 Feb 2018 11:56:15 +0000 (13:56 +0200)
committerJani Simomaa <jani.simomaa@semantum.fi>
Wed, 28 Feb 2018 12:05:26 +0000 (14:05 +0200)
refs #7785

Change-Id: Idc1bb5aba5dfa217449e2c587e03d67016b8d8b1

bundles/org.simantics.db.indexing/src/org/simantics/db/indexing/IndexedRelationsSearcherBase.java
bundles/org.simantics.logback.configuration/logback.xml

index 9441bb75b8ee5a4a3c7fd419ac725e70778cd3ca..c70650ede27bb92c86222654b22e2f039fd12d8a 100644 (file)
@@ -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);
             }
         }
index e217dfa898f10f78ec4f336abcb1cb2827d0bcae..41d963a32acf9b693fe48448db727c1e6fb00609 100644 (file)
@@ -31,7 +31,7 @@
     <appender-ref ref="file" />
   </appender>
 
-  <logger name="org.simantics" level="debug" additivity="false">
+  <logger name="org.simantics" level="info" additivity="false">
     <appender-ref ref="async-console" />
     <appender-ref ref="async-file" />
   </logger>