[Lada-commits] [PATCH] Remove verbose logging in potentially heavily used function

Wald Commits scm-commit at wald.intevation.org
Fri Sep 30 22:40:03 CEST 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1475267988 -7200
# Node ID 7974d3cc974f248bac18e7ed8014c1b21fa95c22
# Parent  7143cd96d3de9c061143f15ea519c6b49f25eced
Remove verbose logging in potentially heavily used function.

diff -r 7143cd96d3de -r 7974d3cc974f src/main/java/de/intevation/lada/factory/ProbeFactory.java
--- a/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Sep 30 18:41:12 2016 +0200
+++ b/src/main/java/de/intevation/lada/factory/ProbeFactory.java	Fri Sep 30 22:39:48 2016 +0200
@@ -133,7 +133,6 @@
             if (subIntField == intervallField) {
                 return intervallFactor;
             }
-            logger.debug("## calculate maximum ##");
             int duration = 0;
             Calendar tmp = (Calendar)from.clone();
             /* reset to beginning of intervall, e.g. first day of quarter
@@ -145,23 +144,18 @@
                 intValue - intValue % intervallFactor
             );
             tmp.set(subIntField, tmp.getActualMinimum(subIntField));
-            logger.debug(tmp);
             for (int i = 0; i < intervallFactor; i++) {
-                logger.debug(tmp.getActualMaximum(subIntField));
                 duration += tmp.getActualMaximum(subIntField);
                 tmp.add(intervallField, 1);
             }
-            logger.debug(duration);
             return duration;
         }
 
         public Date getFrom() {
-            logger.debug("getFrom() from: " + from);
             return from.getTime();
         }
 
         public Date getTo() {
-            logger.debug("getTo() from: " + from);
             Calendar to = (Calendar)from.clone();
             to = adjustSubIntField(to, teilBis);
             return to.getTime();
@@ -335,9 +329,6 @@
                 if (probe != null) {
                     proben.add(probe);
                 }
-            } else {
-                logger.debug(solldatumBeginnDOY + " not within validity "
-                + actualGueltigVon + " to " + actualGueltigBis);
             }
         }
 


More information about the Lada-commits mailing list