Mercurial > lada > lada-server
changeset 617:8086664d1629
Removed log messages.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 17 Apr 2015 13:23:17 +0200 |
parents | e62d1703f099 |
children | 2e26f06b6e4b |
files | src/main/java/de/intevation/lada/importer/laf/LafImporter.java src/main/java/de/intevation/lada/importer/laf/LafParser.java src/main/java/de/intevation/lada/importer/laf/LafProducer.java src/main/java/de/intevation/lada/importer/laf/OrtCreator.java src/main/java/de/intevation/lada/rest/importer/LafImportService.java |
diffstat | 5 files changed, 0 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- 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));
--- 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());
--- 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()); } /**
--- 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;
--- 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());