From: jsimomaa Date: Mon, 12 Jun 2017 09:59:48 +0000 (+0300) Subject: Some minor fixes for pretty printing TG X-Git-Tag: v1.31.0~318 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=cd109cfc863adf6e9207cb77396b52f10d26a849;p=simantics%2Fplatform.git Some minor fixes for pretty printing TG #7276 Change-Id: I838c99e0151c68e8efc9c54189cc1c94e26f55c2 --- diff --git a/bundles/org.simantics.graph/src/org/simantics/graph/representation/PrettyPrintTG.java b/bundles/org.simantics.graph/src/org/simantics/graph/representation/PrettyPrintTG.java index bb776d5df..0640f42f4 100644 --- a/bundles/org.simantics.graph/src/org/simantics/graph/representation/PrettyPrintTG.java +++ b/bundles/org.simantics.graph/src/org/simantics/graph/representation/PrettyPrintTG.java @@ -43,6 +43,8 @@ public class PrettyPrintTG { private static final Logger LOGGER = LoggerFactory.getLogger(PrettyPrintTG.class); + private static final boolean DEBUG = false; + int blankCounter = 0; MessageDigest m; @@ -137,8 +139,7 @@ public class PrettyPrintTG { } void discoverOwners(TransferableGraph1 graph, ResourceInfo info) { - if (LOGGER.isDebugEnabled()) - LOGGER.debug("Discovering owners for " + info); + log("Discovering owners for " + info); int resource = info.resource; TIntArrayList statements = TransferableGraphUtils.getStatements(graph, resource); for(int i=0;i