From cd109cfc863adf6e9207cb77396b52f10d26a849 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Mon, 12 Jun 2017 12:59:48 +0300 Subject: [PATCH] Some minor fixes for pretty printing TG #7276 Change-Id: I838c99e0151c68e8efc9c54189cc1c94e26f55c2 --- .../simantics/graph/representation/PrettyPrintTG.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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