Skip to content
Snippets Groups Projects
Unverified Commit 60bbe6a6 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DEBUG: additional logging

parent 88801b20
Branches
Tags
No related merge requests found
...@@ -101,6 +101,8 @@ import org.restlet.routing.TemplateRoute; ...@@ -101,6 +101,8 @@ import org.restlet.routing.TemplateRoute;
import org.restlet.routing.Variable; import org.restlet.routing.Variable;
import org.restlet.util.Series; import org.restlet.util.Series;
import com.ibm.icu.util.TimeZone;
public class CaosDBServer extends Application { public class CaosDBServer extends Application {
private static Logger logger = Logger.getLogger(CaosDBServer.class.getName()); private static Logger logger = Logger.getLogger(CaosDBServer.class.getName());
...@@ -133,6 +135,7 @@ public class CaosDBServer extends Application { ...@@ -133,6 +135,7 @@ public class CaosDBServer extends Application {
public static void main(final String[] args) { public static void main(final String[] args) {
logger.fine("SERVER_START"); logger.fine("SERVER_START");
logger.info("TimeZone: " + TimeZone.getDefault());
try { try {
initServerProperties(); initServerProperties();
} catch (IOException e1) { } catch (IOException e1) {
......
...@@ -46,6 +46,8 @@ import java.util.Map.Entry; ...@@ -46,6 +46,8 @@ import java.util.Map.Entry;
import java.util.regex.Matcher; import java.util.regex.Matcher;
import java.util.regex.Pattern; import java.util.regex.Pattern;
import org.jdom2.Element; import org.jdom2.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class POV implements EntityFilterInterface { public class POV implements EntityFilterInterface {
private SubProperty subp = null; private SubProperty subp = null;
...@@ -67,6 +69,7 @@ public class POV implements EntityFilterInterface { ...@@ -67,6 +69,7 @@ public class POV implements EntityFilterInterface {
private String propertiesTable = null; private String propertiesTable = null;
private String refIdsTable = null; private String refIdsTable = null;
private final HashMap<String, String> statistics = new HashMap<>(); private final HashMap<String, String> statistics = new HashMap<>();
private Logger logger = LoggerFactory.getLogger(getClass());
private Unit getUnit(final String s) throws ParserException { private Unit getUnit(final String s) throws ParserException {
return CaosDBSystemOfUnits.getUnit(s); return CaosDBSystemOfUnits.getUnit(s);
...@@ -317,6 +320,7 @@ public class POV implements EntityFilterInterface { ...@@ -317,6 +320,7 @@ public class POV implements EntityFilterInterface {
callPOV.close(); callPOV.close();
} catch (final SQLException e) { } catch (final SQLException e) {
logger.error("This POV filter caused an error: " + this.toString());
throw new QueryException(e); throw new QueryException(e);
} }
query.addBenchmark(this.getClass().getSimpleName(), System.currentTimeMillis() - t1); query.addBenchmark(this.getClass().getSimpleName(), System.currentTimeMillis() - t1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment