]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/LazyGraphLabeler.java
Replace System.err and System.out with SLF4J Logging
[simantics/platform.git] / bundles / org.simantics.browsing.ui.graph.impl / src / org / simantics / browsing / ui / graph / impl / LazyGraphLabeler.java
index cf410444ed7753fc9a4d6df73882211fdc811f9e..a7635bedfbb676c337870027bcb85550494766e5 100644 (file)
@@ -25,6 +25,7 @@ import org.simantics.db.ReadGraph;
 import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.procedure.Listener;
 import org.simantics.utils.ui.ErrorLogger;
+import org.slf4j.Logger;
 
 public abstract class LazyGraphLabeler extends LabelerStub {
 
@@ -80,8 +81,7 @@ public abstract class LazyGraphLabeler extends LabelerStub {
 
             @Override
             public void exception(Throwable t) {
-                System.err.println("LazyGraphLabeler2: ");
-                t.printStackTrace();
+                getLogger().error("LazyGraphLabeler2: ", t);
             }
 
         };
@@ -116,4 +116,5 @@ public abstract class LazyGraphLabeler extends LabelerStub {
 
     }
 
+    public abstract Logger getLogger();
 }