[PATCH] a bit of debug output

Wald Commits scm-commit at wald.intevation.org
Fri Aug 23 12:57:28 CEST 2013


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1377255441 -7200
# Node ID a58a1a5209482b60761487473b50055b630e2f23
# Parent  835e07ee769d755e6061b96ad30c7cd3c3646a91
a bit of debug output

diff -r 835e07ee769d -r a58a1a520948 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java	Fri Aug 23 11:39:24 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java	Fri Aug 23 12:57:21 2013 +0200
@@ -68,6 +68,7 @@
     public double getDensity(double km, int year) {
         Collections.sort(this.years);
         if (this.years.size() == 1) {
+            logger.debug("get density from year " + year + " at km " + km);
             return getDensityAtKm(densities.get(year), km);
         }
         else {
@@ -97,7 +98,7 @@
         SedimentDensityValue prev = null;
         SedimentDensityValue next = null;
         for (SedimentDensityValue sdv: values) {
-logger.debug("year: " + sdv.getYear());
+            logger.debug("year: " + sdv.getYear());
             if (sdv.getKm() == km) {
                 prev = sdv;
                 found = true;


More information about the Dive4elements-commits mailing list