X-Git-Url: http://git.argeo.org/?a=blobdiff_plain;f=org.argeo.slc.core%2Fsrc%2Fmain%2Fjava%2Forg%2Fargeo%2Fslc%2Fcore%2Fstructure%2FDefaultSRegistry.java;h=44b4a7a986928e26bdff41c919f9f8a757579806;hb=74ca4f4b824e8fa9ad8118bf1649031777f0941c;hp=ca80d87625e379c42052b1a5050748e24ffa5ff8;hpb=77ed5d40c10f8e8e788382ed0da1f3e4a1c31958;p=gpl%2Fargeo-slc.git
diff --git a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java
index ca80d8762..44b4a7a98 100644
--- a/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java
+++ b/org.argeo.slc.core/src/main/java/org/argeo/slc/core/structure/DefaultSRegistry.java
@@ -7,7 +7,7 @@ import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/** Default implementation of a StructureRegistry
. */
-public class DefaultSRegistry implements StructureRegistry {
+public class DefaultSRegistry implements StructureRegistry {
private static Log log = LogFactory.getLog(DefaultSRegistry.class);
private List elements = new Vector();
@@ -28,9 +28,11 @@ public class DefaultSRegistry implements StructureRegistry {
StructureElement treeSElement = element;
elements.add(treeSElement);
paths.add(path);
- log.debug("Registered " + path + " (desc: '"
- + treeSElement.getLabel() + "', position: "
- + elements.size() + ")");
+
+ if (log.isTraceEnabled())
+ log.trace("Registered " + path + " (label: '"
+ + treeSElement.getLabel() + "', position: "
+ + elements.size() + ")");
}
public StructureElement getElement(StructurePath path) {