changeset 6236:52d4175cb331

Bedheight parser: improved logging
author Tom Gottfried <tom.gottfried@intevation.de>
date Fri, 07 Jun 2013 18:08:45 +0200
parents c2c5ac7c1743
children d961b6d0237e
files backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java	Fri Jun 07 17:52:10 2013 +0200
+++ b/backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java	Fri Jun 07 18:08:45 2013 +0200
@@ -273,10 +273,11 @@
                 return true;
             }
             catch (NumberFormatException e) {
-                log.warn("BHP: Could not parse sounding width: " + line, e);
-                log.warn("-> Set default value '0'");
+                log.warn("BHP: Could not parse sounding width in line '" + line + 
+			 "'. -> Set default value '0'");
             }
             obj.setSoundingWidth(0);
+	    return true;
         }
 
         return false;

http://dive4elements.wald.intevation.org