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=f88b604dda6510d3a232197e867feb79ddf1bec7;hpb=b2d63165e30499440a4c4f118faf9e98e8741702;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 f88b604dd..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 + " (label: '"
- + treeSElement.getLabel() + "', position: "
- + elements.size() + ")");
+
+ if (log.isTraceEnabled())
+ log.trace("Registered " + path + " (label: '"
+ + treeSElement.getLabel() + "', position: "
+ + elements.size() + ")");
}
public StructureElement getElement(StructurePath path) {