[Dive4elements-commits] [PATCH 5 of 6] Improve debugging while merging outs and facets
Wald Commits
scm-commit at wald.intevation.org
Wed Nov 14 11:25:45 CET 2012
# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1352888321 -3600
# Node ID b74399bd09605f88ba42d8df32b208436a843f89
# Parent 04f144c42da5d09ea4e80bc2f3b480bc7ff24bac
Improve debugging while merging outs and facets
diff -r 04f144c42da5 -r b74399bd0960 flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java Wed Nov 14 11:16:56 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java Wed Nov 14 11:18:41 2012 +0100
@@ -175,6 +175,9 @@
List<ManagedFacet> genuinelyNewFacets = new ArrayList<ManagedFacet>();
boolean debug = logger.isDebugEnabled();
+ if (debug) {
+ logger.debug("Compatible facets are " + compatibleFacets);
+ }
for (int i = 0; i < num; i++) {
ManagedFacet facet = (ManagedFacet) newFacets.get(i);
diff -r 04f144c42da5 -r b74399bd0960 flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Wed Nov 14 11:16:56 2012 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java Wed Nov 14 11:18:41 2012 +0100
@@ -18,6 +18,7 @@
import de.intevation.artifactdatabase.Backend;
import de.intevation.artifactdatabase.Backend.PersistentArtifact;
import de.intevation.artifactdatabase.DefaultArtifactCollection;
+import de.intevation.artifactdatabase.state.Facet;
import de.intevation.artifactdatabase.state.Output;
import de.intevation.artifactdatabase.state.Settings;
import de.intevation.artifactdatabase.state.StateEngine;
@@ -334,6 +335,7 @@
long reqBegin = System.currentTimeMillis();
if (debug) {
+ log.debug(XMLUtils.toString(format));
log.debug("FLYSArtifactCollection.out");
}
@@ -375,6 +377,13 @@
Settings settings = null;
if (output != null) {
settings = output.getSettings();
+
+ if (debug) {
+ List<Facet> facets = output.getFacets();
+ for(Facet facet: facets) {
+ log.debug(" -- Facet " + facet.getName());
+ }
+ }
}
generator.init(format, out, context);
More information about the Dive4elements-commits
mailing list