Skip to content

Instantly share code, notes, and snippets.

@pmauduit
Created September 21, 2015 14:03
Show Gist options
  • Save pmauduit/68a5f3b2bdce8a6bbe02 to your computer and use it in GitHub Desktop.
Save pmauduit/68a5f3b2bdce8a6bbe02 to your computer and use it in GitHub Desktop.
patch mfapp - logging issue when uploading
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