changeset 8707:f0ea2063b58e

Change some debugs to trace in theme factory
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 15 Apr 2015 17:22:02 +0200
parents 94cddb00f934
children d718edbf0b0c
files artifacts/src/main/java/org/dive4elements/river/themes/ThemeFactory.java
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/themes/ThemeFactory.java	Fri Apr 24 15:06:38 2015 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/themes/ThemeFactory.java	Wed Apr 15 17:22:02 2015 +0200
@@ -54,7 +54,7 @@
         String name = getName(config);
         String desc = getDescription(config);
 
-        log.debug("Create new theme: " + name);
+        log.trace("Create new theme: " + name);
 
         Theme theme = new DefaultTheme(name, desc);
 
@@ -197,18 +197,18 @@
         Theme    t,
         Map<String, Node> themes
     ) {
-        log.debug("ThemeFactory.parseInherits");
+        log.trace("ThemeFactory.parseInherits");
 
         NodeList inherits = ((Element)cfg).getElementsByTagName("inherit");
 
         int num = inherits.getLength();
 
         if (num == 0) {
-            log.debug("Theme does not inherit from other themes.");
+            log.trace("Theme does not inherit from other themes.");
             return;
         }
 
-        log.debug("Theme inherits from " + num + " other themes.");
+        log.trace("Theme inherits from " + num + " other themes.");
 
         if (themes == null) {
             themes = buildThemeMap(themeCfg);
@@ -253,10 +253,10 @@
 
         int num = fields.getLength();
 
-        log.debug("Found " + num + " own fields in this theme.");
+        log.trace("Found " + num + " own fields in this theme.");
 
         if (num == 0) {
-            log.debug("Theme has no own fields.");
+            log.trace("Theme has no own fields.");
             return;
         }
 
@@ -271,7 +271,7 @@
     protected static void addField(Theme theme, Node field) {
         String name = ((Element)field).getAttribute("name");
 
-        log.debug("Add field " + name + " to theme " + theme.getName());
+        log.trace("Add field " + name + " to theme " + theme.getName());
 
         NamedNodeMap attrs = field.getAttributes();
 
@@ -303,7 +303,7 @@
         int num = attrs != null ? attrs.getLength() : 0;
 
         if (num == 0) {
-            log.debug("Theme has no attributes set.");
+            log.trace("Theme has no attributes set.");
             return;
         }
 

http://dive4elements.wald.intevation.org