comparison backend/src/main/java/org/dive4elements/river/importer/parsers/BedHeightParser.java @ 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 e7526a074c0d f55a99fe5ce3 cc11780b3491
comparison
equal deleted inserted replaced
6235:c2c5ac7c1743 6236:52d4175cb331
271 try { 271 try {
272 obj.setSoundingWidth(Integer.valueOf(tmp)); 272 obj.setSoundingWidth(Integer.valueOf(tmp));
273 return true; 273 return true;
274 } 274 }
275 catch (NumberFormatException e) { 275 catch (NumberFormatException e) {
276 log.warn("BHP: Could not parse sounding width: " + line, e); 276 log.warn("BHP: Could not parse sounding width in line '" + line +
277 log.warn("-> Set default value '0'"); 277 "'. -> Set default value '0'");
278 } 278 }
279 obj.setSoundingWidth(0); 279 obj.setSoundingWidth(0);
280 return true;
280 } 281 }
281 282
282 return false; 283 return false;
283 } 284 }
284 285

http://dive4elements.wald.intevation.org