Mercurial > dive4elements > river
changeset 4499:b74399bd0960
Improve debugging while merging outs and facets
author | Björn Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Wed, 14 Nov 2012 11:18:41 +0100 |
parents | 04f144c42da5 |
children | 7558a18ceb23 |
files | flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java |
diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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);
--- 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);