Commit d0af4ea7 authored by Pascal Reuss's avatar Pascal Reuss

Merge branch 'czempisz' into 'mycbr-3.0.1'

Czempisz

Added Log4j libraries and changed SysOut in line 126 in DataBaseImporter.java to Logger.
parents c4b8893b 2dd4e0f1
......@@ -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;
......@@ -78,6 +79,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;
/**
......@@ -118,7 +121,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