X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.scenegraph%2Fsrc%2Forg%2Fsimantics%2Fscenegraph%2Fg2d%2Fnodes%2FSVGNode.java;h=fe3fe5e9de6a87834e8bdf114290e8a34b873dc0;hp=6fd25e6f8359cbf81dfe7922448d837915618a18;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java index 6fd25e6f8..fe3fe5e9d 100644 --- a/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java +++ b/bundles/org.simantics.scenegraph/src/org/simantics/scenegraph/g2d/nodes/SVGNode.java @@ -56,6 +56,8 @@ import org.simantics.scenegraph.utils.VRamBufferedImage; import org.simantics.scl.runtime.function.Function1; import org.simantics.scl.runtime.function.Function2; import org.simantics.utils.threads.AWTThread; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; @@ -77,6 +79,7 @@ public class SVGNode extends G2DNode implements InitValueSupport, LoaderNode { private static final long serialVersionUID = 8508750881358776559L; + private static final Logger LOGGER = LoggerFactory.getLogger(SVGNode.class); protected String data = null; protected String defaultData = null; protected Point targetSize = null; @@ -324,7 +327,7 @@ public class SVGNode extends G2DNode implements InitValueSupport, LoaderNode { e.setAttribute(ass.attributeNameOrId, ass.value); } } else { - System.err.println("Element with id='" + ass.elementId + " was not found."); + LOGGER.warn("Element with id='" + ass.elementId + " was not found."); } } @@ -473,7 +476,7 @@ public class SVGNode extends G2DNode implements InitValueSupport, LoaderNode { if (!data.equals(documentCache) || diagramCache == null) { dataHash = parseSVG(); if (diagramCache == null) { - System.err.println("UNABLE TO PARSE SVG:\n" + data); + LOGGER.warn("UNABLE TO PARSE SVG:\n" + data); return; } }