X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2FEvaluators.java;h=da872193fab6b538dc6e06183a371bde75c121b5;hb=HEAD;hp=b0e09381fb351108321409da8e3c7e6286d2716b;hpb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java index b0e09381f..da872193f 100644 --- a/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java +++ b/bundles/org.simantics.browsing.ui.graph.impl/src/org/simantics/browsing/ui/graph/impl/Evaluators.java @@ -66,6 +66,8 @@ import org.simantics.db.Resource; import org.simantics.db.common.request.ReadRequest; import org.simantics.db.exception.DatabaseException; import org.simantics.db.exception.ResourceNotFoundException; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; /** * An entry point for loading an EvaluatorData in a data-oriented fashion. Also @@ -75,6 +77,7 @@ import org.simantics.db.exception.ResourceNotFoundException; */ public class Evaluators { + private static final Logger LOGGER = LoggerFactory.getLogger(Evaluators.class); public static final boolean DEBUG = false; public static void create(EvaluatorData data, final ResourceManager resourceManager, @@ -294,11 +297,9 @@ public class Evaluators { try { browseContextResources.add(graph.getResource(browseContext)); } catch(ResourceNotFoundException e) { - // Expected result, if no modelled contributions exist. - //System.err.println("Didn't find " + browseContext + " while loading model browser."); + // Expected result, if the browse context is not modelled. } catch(DatabaseException e) { - System.err.println("Didn't find " + browseContext + " while loading model browser."); - e.printStackTrace(); + LOGGER.error("Unexpected error occurred while finding browse context " + browseContext + ".", e); } }