Merge commit 'ffdf837'
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / SCL.java
index 52909e018bb36df8d1723d23b37f7321a46d0867..24e50c0f7606c2cdde27fefdb0fb8a20a2d32d65 100644 (file)
@@ -10,7 +10,6 @@ import org.eclipse.core.runtime.Platform;
 import org.eclipse.core.runtime.jobs.IJobManager;\r
 import org.eclipse.core.runtime.jobs.Job;\r
 import org.simantics.DatabaseJob;\r
-import org.simantics.Logger;\r
 import org.simantics.Simantics;\r
 import org.simantics.SimanticsPlatform;\r
 import org.simantics.SimanticsPlatform.OntologyRecoveryPolicy;\r
@@ -24,8 +23,12 @@ import org.simantics.db.layer0.util.RemoverUtil;
 import org.simantics.db.layer0.util.SimanticsClipboard;\r
 import org.simantics.db.service.DebugSupport;\r
 import org.simantics.db.service.ServiceActivityMonitor;\r
+import org.slf4j.Logger;\r
+import org.slf4j.LoggerFactory;\r
 \r
 public class SCL {\r
+    private static final Logger LOGGER = LoggerFactory.getLogger(SCL.class);\r
+\r
     public static void killPlatformWrite(WriteGraph graph) throws DatabaseException {\r
         // Currently not supported.\r
         // Would be relatively easy to support the desired functionality.\r
@@ -113,7 +116,7 @@ public class SCL {
        try {\r
                        Thread.sleep(ms);\r
                } catch (InterruptedException e) {\r
-                       Logger.defaultLogError(e);\r
+            LOGGER.warn("Sleep was interrupted.", e);\r
                }\r
     }\r
 \r