Commit a9d80267 authored by Daniel Czempisz's avatar Daniel Czempisz

Logger added in line 126 DataBaseImporter.java

parent 1f704696
......@@ -18,6 +18,7 @@ import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.apache.log4j.Logger;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
......@@ -79,6 +80,8 @@ public class DataBaseImporter {
private HashSet<Pair<String, AttributeDesc>> invalidValues = new HashSet<Pair<String, AttributeDesc>>();
private static Logger logger = Logger.getLogger(DataBaseImporter.class);
Thread t;
/**
......@@ -120,7 +123,8 @@ public class DataBaseImporter {
} catch (ClassNotFoundException ce) {
error = DataBaseImporterError.DataBaseConnect;
System.out.println(ce.getLocalizedMessage());
logger.error(ce.getLocalizedMessage());
// System.out.println(ce.getLocalizedMessage());
} catch (SQLException se) {
error = DataBaseImporterError.DataBaseConnect;
System.out.println(se.getLocalizedMessage());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment