diff flys-aft/src/main/java/de/intevation/aft/River.java @ 4110:06891562e633

Extracted and documented the error messages of the process. flys-aft/trunk@4054 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 16 Feb 2012 11:26:56 +0000
parents cdcf98245e36
children 79bb64f66c74
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/aft/River.java	Wed Feb 08 09:43:12 2012 +0000
+++ b/flys-aft/src/main/java/de/intevation/aft/River.java	Thu Feb 16 11:26:56 2012 +0000
@@ -55,20 +55,20 @@
             String num  = messstellenRs.getString("MESSSTELLE_NR");
             Long number = SyncContext.numberToLong(num);
             if (number == null) {
-                log.warn("Invalid MESSSTELLE_NR for MESSSTELLE '"+name+"'");
+                log.warn("AFT: Invalid MESSSTELLE_NR for MESSSTELLE '"+name+"'");
                 continue;
             }
             DIPSGauge dipsGauge = dipsGauges.get(number);
             if (dipsGauge == null) {
                 log.warn(
-                    "MESSSTELLE '" + name + "' not found in DIPS. " +
+                    "DIPS: MESSSTELLE '" + name + "' not found in DIPS. " +
                     "Gauge number used for lookup: " + number);
                 continue;
             }
             String gaugeRiver = dipsGauge.getRiverName();
             if (!gaugeRiver.equalsIgnoreCase(riverName)) {
                 log.warn(
-                    "MESSSTELLE '" + name + 
+                    "DIPS: MESSSTELLE '" + name + 
                     "' is assigned to river '" + gaugeRiver + 
                     "'. Needs to be on '" + riverName + "'.");
                 continue;
@@ -254,7 +254,7 @@
                 "' not in FLYS but in AFT/DIPS. -> Create");
 
             if (!gauge.hasDatums()) {
-                log.warn("FLYS: Gauge '" + 
+                log.warn("DIPS: Gauge '" + 
                     gauge.getAftName() + "' has no datum. Ignored.");
                 continue;
             }

http://dive4elements.wald.intevation.org