From: Tuukka Lehtonen Date: Wed, 1 Feb 2017 10:01:15 +0000 (+0200) Subject: Removed stderr logging from CompileSCLMonitorRequest. X-Git-Tag: v1.28.0~89^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=459ca221e046b0ed539e4eab4486a0a3178a4eba;p=simantics%2Fplatform.git Removed stderr logging from CompileSCLMonitorRequest. refs #7008 Change-Id: I28c4cf4068a137679eeb641d0b7e085ac2cc3c63 --- diff --git a/bundles/org.simantics.modeling/src/org/simantics/modeling/scl/CompileSCLMonitorRequest.java b/bundles/org.simantics.modeling/src/org/simantics/modeling/scl/CompileSCLMonitorRequest.java index 10eeb6ac6..dfea83931 100644 --- a/bundles/org.simantics.modeling/src/org/simantics/modeling/scl/CompileSCLMonitorRequest.java +++ b/bundles/org.simantics.modeling/src/org/simantics/modeling/scl/CompileSCLMonitorRequest.java @@ -29,10 +29,14 @@ import org.simantics.scl.compiler.types.Type; import org.simantics.scl.runtime.SCLContext; import org.simantics.scl.runtime.function.Function1; import org.simantics.utils.datastructures.Pair; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class CompileSCLMonitorRequest extends AbstractExpressionCompilationRequest { - + + private static Logger LOGGER = LoggerFactory.getLogger(CompileSCLMonitorRequest.class); + protected static Name BROWSE = Name.create("Simantics/Variables", "browse"); protected static Name VALUE = Name.create("Simantics/Variables", "value"); @@ -72,10 +76,8 @@ public class CompileSCLMonitorRequest extends AbstractExpressionCompilationReque sclContext.put("graph", graph); return exp.apply(context.getParent(graph)); } catch (DatabaseException e) { - e.printStackTrace(); throw (DatabaseException)e; } catch (Throwable t) { - t.printStackTrace(); throw new DatabaseException(t); } finally { sclContext.put("graph", oldGraph); @@ -98,7 +100,7 @@ public class CompileSCLMonitorRequest extends AbstractExpressionCompilationReque try { return Environments.getType(context.runtimeEnvironment.getEnvironment(), valueType); } catch (SCLExpressionCompilationException e) { - e.printStackTrace(); + LOGGER.warn("getExpectedType failed for valueType: " + valueType, e); } } return super.getExpectedType(graph, context);