changeset 8456:572c102b1819

Improve error handling.
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 29 Oct 2014 19:52:06 +0100
parents 6dfc3a1fc70d
children d2b85c0c35b7
files artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java	Wed Oct 29 19:51:39 2014 +0100
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/states/FloodMapState.java	Wed Oct 29 19:52:06 2014 +0100
@@ -166,7 +166,7 @@
                     FileUtils.writeStringToFile(f,
                             content.replaceAll(orig.identifier(), owner.identifier()));
                 } catch (IOException e) {
-                    log.debug("failed.");
+                    log.error("Failed to rewrite file: " + f + " Error: " + e.getMessage());
                 }
             }
         }

http://dive4elements.wald.intevation.org