[PATCH 1 of 3] Add useful debug output for diagram generator debugging
Wald Commits
scm-commit at wald.intevation.org
Mon Sep 23 12:22:07 CEST 2013
# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1379931627 -7200
# Branch generator-refactoring
# Node ID 5c059c05b100971c5912b7fb211ea6e54e49b825
# Parent cdae0ff8960bd8b2d26da4585b312d42b7e09165
Add useful debug output for diagram generator debugging
diff -r cdae0ff8960b -r 5c059c05b100 artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java
--- a/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Mon Sep 23 10:24:47 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/exports/DiagramGenerator.java Mon Sep 23 12:20:27 2013 +0200
@@ -1118,10 +1118,22 @@
logger.debug("DoOut for facet: " + facetName);
- for (Processor pr: diagramAttributes.getProcessors()) {
+ boolean found = false;
+ List<Processor> prL = diagramAttributes.getProcessors();
+ for (Processor pr: prL) {
if (pr.canHandle(facetName)) {
+ found = true;
pr.doOut(this, bundle, theme, visible);
}
}
+ if (!found) {
+ logger.warn("No processor found for: " + facetName);
+ if (logger.isDebugEnabled()) {
+ logger.debug("Configured processors for this diagram are:");
+ for (Processor pr: prL) {
+ logger.debug(pr.getClass().getName());
+ }
+ }
+ }
}
}
More information about the Dive4elements-commits
mailing list