Created
September 21, 2015 14:03
-
-
Save pmauduit/68a5f3b2bdce8a6bbe02 to your computer and use it in GitHub Desktop.
patch mfapp - logging issue when uploading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java b/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java | |
index 4f011b7..1cacf7f 100644 | |
--- a/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java | |
+++ b/mapfishapp/src/main/java/org/georchestra/mapfishapp/ws/upload/UpLoadFileManagement.java | |
@@ -374,18 +374,10 @@ public class UpLoadFileManagement { | |
fjson.setEncodeFeatureCollectionCRS(true); | |
fjson.writeFeatureCollection(featureCollection, writer); | |
- | |
- } catch (ProjectionException e) { | |
- LOG.error("Failed reading " + fileName + ": " + e.getMessage()); | |
- throw e; | |
- } | |
- catch (Exception e) { | |
- | |
- final String message = "Failed reading " + fileName + ". " | |
- + e.getMessage(); | |
- LOG.error(message); | |
+ } catch (Exception e) { | |
+ final String message = "Failed reading " + fileName + ". " + e.getMessage(); | |
+ LOG.error(message, e); | |
throw new IOException(message, e); | |
- | |
} finally { | |
if (featuresIterator != null) featuresIterator.close(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment