X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui.graph.impl%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fgraph%2Fimpl%2FEvaluators.java;h=e86cdc54703559214895694478c386a6cf80e9f3;hp=b0e09381fb351108321409da8e3c7e6286d2716b;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 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..e86cdc547 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, @@ -293,12 +296,8 @@ public class Evaluators { for(String browseContext : browseContexts) { 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."); } catch(DatabaseException e) { - System.err.println("Didn't find " + browseContext + " while loading model browser."); - e.printStackTrace(); + LOGGER.error("Didn't find " + browseContext + " while loading model browser.", e); } }