Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java @ 8202:e4606eae8ea5
sed src/**/*.java 's/logger/log/g'
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Fri, 05 Sep 2014 12:58:17 +0200 |
parents | f51c943c707a |
children | 839032ac1523 |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java Fri Sep 05 12:54:58 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/exports/ATWriter.java Fri Sep 05 12:58:17 2014 +0200 @@ -36,7 +36,7 @@ /** Write AT files. */ public class ATWriter { - private static Logger logger = Logger.getLogger(ATWriter.class); + private static Logger log = Logger.getLogger(ATWriter.class); public static final int COLUMNS = 10; @@ -58,7 +58,7 @@ } catch (FunctionEvaluationException aode) { // should not happen - logger.error("spline interpolation failed", aode); + log.error("spline interpolation failed", aode); return Double.NaN; } } @@ -155,8 +155,8 @@ int [] bounds = wq.longestIncreasingWRangeIndices(); - if (logger.isDebugEnabled()) { - logger.debug("exporting " + (isCalculation ? "calculated " : "") + + if (log.isDebugEnabled()) { + log.debug("exporting " + (isCalculation ? "calculated " : "") + "w between indices " + bounds[0] + " and " + bounds[1] + " (" + (int)Math.ceil(wq.getW(bounds[0])) + ", " + (int)Math.floor(wq.getW(bounds[1]))+ ")"); @@ -209,10 +209,10 @@ int startW = minW - rest; - if (logger.isDebugEnabled()) { - logger.debug("startW: " + startW); - logger.debug("rest: " + rest); - logger.debug("maxW: " + maxW); + if (log.isDebugEnabled()) { + log.debug("startW: " + startW); + log.debug("rest: " + rest); + log.debug("maxW: " + maxW); } int col = 0;