[Lada-commits] [PATCH 4 of 4] Removed log messages
Wald Commits
scm-commit at wald.intevation.org
Fri Apr 17 13:22:53 CEST 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1429269797 -7200
# Node ID 8086664d16294d83907a0fe12cd72cf61d9ca6c4
# Parent e62d1703f099defb2445f55285058187638af507
Removed log messages.
diff -r e62d1703f099 -r 8086664d1629 src/main/java/de/intevation/lada/importer/laf/LafImporter.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafImporter.java Fri Apr 17 13:22:45 2015 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafImporter.java Fri Apr 17 13:23:17 2015 +0200
@@ -68,9 +68,7 @@
this.warnings.clear();
this.errors.clear();
this.parser.reset();
- logger.debug("doing import");
boolean success = parser.parse(userInfo, content);
- logger.debug("import success: " + success);
if (!success) {
List<ReportItem> report = new ArrayList<ReportItem>();
report.add(new ReportItem("parser", "no success", 660));
diff -r e62d1703f099 -r 8086664d1629 src/main/java/de/intevation/lada/importer/laf/LafParser.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafParser.java Fri Apr 17 13:22:45 2015 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafParser.java Fri Apr 17 13:23:17 2015 +0200
@@ -90,11 +90,9 @@
single = laf.substring(0, nextPos + 1);
laf = laf.substring(nextPos + 1);
try {
- logger.debug("parsing probe");
readAll(single);
this.warnings.putAll(producer.getWarnings());
this.errors.putAll(producer.getErrors());
- logger.debug("writing to database");
writeAll(userInfo);
this.producer.reset();
this.writer.reset();
@@ -117,11 +115,9 @@
}
else {
try {
- logger.debug("parsing single probe");
readAll(laf);
this.warnings.putAll(producer.getWarnings());
this.errors.putAll(producer.getErrors());
- logger.debug("writing single to database");
writeAll(userInfo);
this.producer.reset();
this.writer.reset();
@@ -185,7 +181,6 @@
}
}
writer.writeOrte(userInfo, producer.getOrte());
- logger.debug("### i have " + producer.getLOrte().size() + " orte");
writer.writeLOrte(userInfo, producer.getLOrte());
writer.writeMessungKommentare(userInfo, producer.getMessungsKommentare());
writer.writeMesswerte(userInfo, producer.getMesswerte());
diff -r e62d1703f099 -r 8086664d1629 src/main/java/de/intevation/lada/importer/laf/LafProducer.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafProducer.java Fri Apr 17 13:22:45 2015 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/LafProducer.java Fri Apr 17 13:23:17 2015 +0200
@@ -92,7 +92,6 @@
*/
public void addData(String key, Object values)
throws LafParserException {
- logger.debug("adding " + key + ": " + values);
String lKey = key.toLowerCase();
if(lKey.equals("probenkommentar")) {
LKommentarP kommentar = new LKommentarP();
@@ -172,7 +171,6 @@
}
else if (isValidMessung(lKey, values.toString())) {
this.messung = mapper.addAttribute(lKey, values, this.messung);
- logger.debug("####### " + lKey + ": " + values);
this.messungTranslation =
mapper.addAttribute(lKey, values, this.messungTranslation);
}
@@ -351,20 +349,14 @@
if (o != null) {
this.orte.add(o);
}
- logger.debug("ort: " + this.ort.getProbeId());
LOrt lo = this.ort.toLOrt();
- logger.debug("lo is " + lo != null);
if (lo != null) {
this.lorte.add(lo);
}
}
OrtCreator creator = this.ort;
creator.reset();
- logger.debug(this.probe.getId());
- logger.debug(creator.hashCode());
creator.setProbeId(this.probe.getId());
- logger.debug("ort: " + creator.getProbeId());
- logger.debug(creator.hashCode());
}
/**
diff -r e62d1703f099 -r 8086664d1629 src/main/java/de/intevation/lada/importer/laf/OrtCreator.java
--- a/src/main/java/de/intevation/lada/importer/laf/OrtCreator.java Fri Apr 17 13:22:45 2015 +0200
+++ b/src/main/java/de/intevation/lada/importer/laf/OrtCreator.java Fri Apr 17 13:23:17 2015 +0200
@@ -78,7 +78,6 @@
* @param ortCode the ortCode to set
*/
public void setOrtCode(String ortCode) {
- logger.debug("ort code is " + ortCode);
this.ortCode = ortCode;
}
@@ -319,7 +318,6 @@
String key,
Object value
) {
- logger.debug("# adding " + key + ": " + value);
if ("ort_code".equals(key)) {
this.setOrtCode(value.toString());
}
@@ -666,7 +664,6 @@
* @return The new LOrt object.
*/
public LOrt toLOrt() {
- logger.debug("#### getting lort");
if (this.ortId == null &&
(this.ortCode == null || this.ortCode.length() == 0)
) {
@@ -686,12 +683,10 @@
ort.setProbeId(this.probeId);
ort.setOrtsTyp(this.ortTyp);
ort.setOrtszusatztext(this.zusatztext);
- logger.debug("yeah a new ort");
return ort;
}
public void reset() {
- logger.debug("resetting ortcreator");
this.beschreibung = null;
this.bezeichnung = null;
this.gemName = null;
diff -r e62d1703f099 -r 8086664d1629 src/main/java/de/intevation/lada/rest/importer/LafImportService.java
--- a/src/main/java/de/intevation/lada/rest/importer/LafImportService.java Fri Apr 17 13:22:45 2015 +0200
+++ b/src/main/java/de/intevation/lada/rest/importer/LafImportService.java Fri Apr 17 13:23:17 2015 +0200
@@ -68,7 +68,6 @@
@Context HttpServletRequest request) {
UserInfo userInfo = authorization.getInfo(request);
- logger.debug(content);
importer.doImport(content, userInfo);
Map<String, Object> respData = new HashMap<String,Object>();
respData.put("errors", importer.getErrors());
More information about the Lada-commits
mailing list