X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph.loader%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Floader%2FScenegraphLoaderUtils.java;h=b4b68a002ff4f360b0f30a1f9b7acbe366813aba;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hp=e40773002ebfb68fb5bab610b5896c1e0f699001;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphLoaderUtils.java b/bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphLoaderUtils.java index e40773002..b4b68a002 100644 --- a/bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphLoaderUtils.java +++ b/bundles/org.simantics.scenegraph.loader/src/org/simantics/scenegraph/loader/ScenegraphLoaderUtils.java @@ -42,9 +42,12 @@ import org.simantics.utils.DataContainer; import org.simantics.utils.datastructures.Pair; import org.simantics.utils.threads.IThreadWorkQueue; import org.simantics.utils.threads.ThreadUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class ScenegraphLoaderUtils { - + + private static final Logger LOGGER = LoggerFactory.getLogger(ScenegraphLoaderUtils.class); static Map, Collection>> externalMap = new HashMap, Collection>>(); static Map, Object> externalValueMap = new HashMap, Object>(); @@ -506,10 +509,9 @@ public class ScenegraphLoaderUtils { try { return node.getClass().getField(propertyName); } catch (SecurityException e) { - e.printStackTrace(); + LOGGER.error("node: " + node, e); } catch (NoSuchFieldException e) { - System.err.println("node:" + node); - e.printStackTrace(); + LOGGER.error("node: " + node, e); } return null; }