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

DEBUG: additional logging

parent 88801b20
No related branches found
No related tags found
No related merge requests found
......@@ -101,6 +101,8 @@ import org.restlet.routing.TemplateRoute;
import org.restlet.routing.Variable;
import org.restlet.util.Series;
import com.ibm.icu.util.TimeZone;
public class CaosDBServer extends Application {
private static Logger logger = Logger.getLogger(CaosDBServer.class.getName());
......@@ -133,6 +135,7 @@ public class CaosDBServer extends Application {
public static void main(final String[] args) {
logger.fine("SERVER_START");
logger.info("TimeZone: " + TimeZone.getDefault());
try {
initServerProperties();
} catch (IOException e1) {
......
......@@ -46,6 +46,8 @@ import java.util.Map.Entry;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.jdom2.Element;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
public class POV implements EntityFilterInterface {
private SubProperty subp = null;
......@@ -67,6 +69,7 @@ public class POV implements EntityFilterInterface {
private String propertiesTable = null;
private String refIdsTable = null;
private final HashMap<String, String> statistics = new HashMap<>();
private Logger logger = LoggerFactory.getLogger(getClass());
private Unit getUnit(final String s) throws ParserException {
return CaosDBSystemOfUnits.getUnit(s);
......@@ -317,6 +320,7 @@ public class POV implements EntityFilterInterface {
callPOV.close();
} catch (final SQLException e) {
logger.error("This POV filter caused an error: " + this.toString());
throw new QueryException(e);
}
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