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=224cf6d92e15f17a66d3e5a7fcba0d5983089433;hp=f59fc65b7416d27ab1965e2ca39309f6a47562e1;hpb=faf680e212bf3e18837c4f798587856e061273b3;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 f59fc65b7..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.getDescription() + "', position: "
- + elements.size() + ")");
+
+ if (log.isTraceEnabled())
+ log.trace("Registered " + path + " (label: '"
+ + treeSElement.getLabel() + "', position: "
+ + elements.size() + ")");
}
public StructureElement getElement(StructurePath path) {