[Dive4elements-commits] [PATCH 1 of 2] RangeAccess: Doc and debug

Wald Commits scm-commit at wald.intevation.org
Mon Jan 21 17:29:10 CET 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1358786096 -3600
# Node ID 15e55fdbb4028017c87491f051734effbb3a6cdc
# Parent  a3dc382bc1caa1a271bfa0372dba997e18a58b46
RangeAccess: Doc and debug.

diff -r a3dc382bc1ca -r 15e55fdbb402 flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java	Mon Jan 21 17:26:08 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RangeAccess.java	Mon Jan 21 17:34:56 2013 +0100
@@ -28,21 +28,30 @@
     }
 
 
-    /** Return ld_from data. */
+    /** Return ld_from data (in km). */
     public double getFrom() {
         if (from == null) {
             from = getDouble("ld_from");
         }
 
+        if (logger.isDebugEnabled()) {
+            logger.debug("from: '" + from + "'");
+        }
+
         return from.doubleValue();
     }
 
 
-    /** Return ld_to data. */
+    /** Return ld_to data (in km). */
     public double getTo() {
         if (to == null) {
             to = getDouble("ld_to");
         }
+
+        if (logger.isDebugEnabled()) {
+            logger.debug("to: '" + to + "'");
+        }
+
         return to.doubleValue();
     }
 


More information about the Dive4elements-commits mailing list