From af905ef49a637518bb52c33e45695e1e52b3905c Mon Sep 17 00:00:00 2001 From: Lucio Lelii Date: Wed, 12 Jul 2017 12:56:19 +0000 Subject: [PATCH] git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/data-analysis/DataMiner@151008 82a268e6-3cf1-43bd-a215-b396298e98cf --- .../wps/statisticalmanager/synchserver/utils/GML2CSV.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/utils/GML2CSV.java b/src/main/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/utils/GML2CSV.java index ec122b8..57ac420 100644 --- a/src/main/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/utils/GML2CSV.java +++ b/src/main/java/org/gcube/dataanalysis/wps/statisticalmanager/synchserver/utils/GML2CSV.java @@ -12,12 +12,15 @@ import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParserFactory; import org.apache.commons.lang.StringEscapeUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.xml.sax.Attributes; import org.xml.sax.SAXException; import org.xml.sax.helpers.DefaultHandler; public class GML2CSV { + private static final Logger LOGGER = LoggerFactory.getLogger(GML2CSV.class); public static void convertHTMLToXML(String gmlhtmlFile,String gmlxmlFile) throws Exception{ BufferedWriter filew = new BufferedWriter(new FileWriter(new File(gmlxmlFile))); @@ -96,7 +99,7 @@ public class GML2CSV { row = new ArrayList(); } } catch (IOException e) { - e.printStackTrace(); + } } tagcounter--; @@ -117,7 +120,7 @@ public class GML2CSV { saxParser.parse(gmlFile, handler); filew.close(); } catch (Exception e) { - e.printStackTrace(); + LOGGER.error("error parsing GML ",e); } }