[Dive4elements-commits] [PATCH 3 of 3] Add debug output for StateEngine

Wald Commits scm-commit at wald.intevation.org
Wed Dec 12 16:07:10 CET 2012


# HG changeset patch
# User Björn Ricks <bjoern.ricks at intevation.de>
# Date 1355324815 -3600
# Node ID 708de1779232ae11ff8da4833119a43c6eb6df19
# Parent  f2eab30cbc9ab76d967333862f1a4dbaa69bb683
Add debug output for StateEngine

diff -r f2eab30cbc9a -r 708de1779232 artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java	Wed Dec 12 16:06:08 2012 +0100
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/state/StateEngine.java	Wed Dec 12 16:06:55 2012 +0100
@@ -140,15 +140,18 @@
             new HashMap<String, List<String>>();
 
         // For all states that the artifact had seen, add outputs facets.
+        logger.debug("Searching in " + aStates);
         for (String stateId: aStates) {
 
             State state = allStates.get(stateId);
             if (state == null) {
+                logger.debug("No state found for id " + stateId);
                 continue;
             }
 
             for (Output output: state.getOutputs()) {
                 List<Facet> outFacets = output.getFacets();
+                logger.debug("Facets for output " + output.getName() + " :" + outFacets);
 
                 List<String> oldFacets = compatibilityMatrix.get(output.getName());
 


More information about the Dive4elements-commits mailing list