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); } }