Removed unnecessary dependencies on org.apache.log4j
[simantics/platform.git] / bundles / org.simantics.modeling / src / org / simantics / modeling / SCLDropAction.java
index 74b19a2144f77229c6ba338a5f3cf5ad461bf829..f1d38554572d1f3d6260636241095d980c97da59 100644 (file)
@@ -8,11 +8,14 @@ import org.simantics.db.exception.DatabaseException;
 import org.simantics.db.layer0.adapter.DropActionFactory;
 import org.simantics.db.layer0.variable.Variable;
 import org.simantics.db.layer0.variable.Variables;
-import org.simantics.diagram.Logger;
 import org.simantics.scl.runtime.function.Function3;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
 
 public class SCLDropAction implements DropActionFactory {
 
+       private static final Logger LOGGER = LoggerFactory.getLogger(SCLDropAction.class);
+
        final private Resource rule;
 
        public SCLDropAction(ReadGraph graph, Resource rule) throws DatabaseException {
@@ -55,7 +58,7 @@ public class SCLDropAction implements DropActionFactory {
                                Function3<Resource, Object, Integer, Object> function = Simantics.getSession().syncRequest(new RuleFunctionRequest(rule));
                                function.apply(target, source, operation);
                        } catch (DatabaseException e) {
-                               Logger.defaultLogError(e);
+                               LOGGER.error("SCLDropActionRunnable failed to request/apply RuleFunction {}", rule, e);
                        }
                }