X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.acorn%2Fsrc%2Forg%2Fsimantics%2Facorn%2Flru%2FClusterInfo.java;h=54689394d2e894e30ea0139fbed4aa78dfff237c;hp=f20b384569d2c9893e7a3999756cd3308409ab2b;hb=1dfeb7d5c49b1391cd9d877e1eddab18995cb151;hpb=c13c4179bda758e77fe1f2032d3c4268bb9e3120 diff --git a/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ClusterInfo.java b/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ClusterInfo.java index f20b38456..54689394d 100644 --- a/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ClusterInfo.java +++ b/bundles/org.simantics.acorn/src/org/simantics/acorn/lru/ClusterInfo.java @@ -20,9 +20,12 @@ import org.simantics.db.exception.SDBException; import org.simantics.db.service.Bytes; import org.simantics.db.service.ClusterUID; import org.simantics.utils.datastructures.Pair; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; public class ClusterInfo extends LRUObject implements Persistable { - + + private static final Logger LOGGER = LoggerFactory.getLogger(ClusterInfo.class); final private ClusterManager manager; private ClusterImpl cluster; public int changeSetId; @@ -328,7 +331,8 @@ public class ClusterInfo extends LRUObject implements P long start = System.nanoTime(); state.waitForUpdates(); long duration = System.nanoTime() - start; - System.err.println("Wait updates to cluster " + getKey() + " for " + (1e-6 * duration) + "ms."); + if (LOGGER.isDebugEnabled()) + LOGGER.debug("Wait updates to cluster " + getKey() + " for " + (1e-6 * duration) + "ms."); } } @@ -336,5 +340,9 @@ public class ClusterInfo extends LRUObject implements P protected boolean overwrite() { return true; } - + + @Override + public Logger getLogger() { + return LOGGER; + } } \ No newline at end of file