changeset 4025:721d55bdab9e

Add warning if no compatible facet is found This log info would have saved much of my time if it had been present.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 04 Oct 2012 14:02:42 +0200
parents 62d99de39a8d
children c759da78f17a
files flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java
diffstat 2 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog	Thu Oct 04 13:59:03 2012 +0200
+++ b/flys-artifacts/ChangeLog	Thu Oct 04 14:02:42 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-01	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/collections/AttributeWriter.java:
+	  Add warning if no compatible facet is found.
+
 2012-10-01	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java:
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java	Thu Oct 04 13:59:03 2012 +0200
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java	Thu Oct 04 14:02:42 2012 +0200
@@ -184,10 +184,12 @@
             }
 
             if (!compatibleFacets.contains(facet.getName())) {
-                //logger.debug("Have incompatible facet, skip: " + facet.getName());
+                logger.warn("Have incompatible facet, skip: " + facet.getName());
                 continue;
             }
-            //else logger.debug("Have compatible facet: " + facet.getName());
+            else {
+                logger.debug("Have compatible facet: " + facet.getName());
+            }
 
             ManagedFacet picked = pickFacet(facet, oldFacets);
 

http://dive4elements.wald.intevation.org