aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 11:51:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-15 11:51:29 +1200
commitfa26dd5f14a991f327c26517a645c6b4f77c4a73 (patch)
tree26477b69c3aeca4cba7b6947cf6973d762841cda /src/org/traccar/web
parent2fb444df86d56246a8b5cee515eb91490c8dee05 (diff)
downloadtrackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.tar.gz
trackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.tar.bz2
trackermap-server-fa26dd5f14a991f327c26517a645c6b4f77c4a73.zip
Provide error messages
Diffstat (limited to 'src/org/traccar/web')
-rw-r--r--src/org/traccar/web/ConsoleServlet.java2
-rw-r--r--src/org/traccar/web/CsvBuilder.java4
-rw-r--r--src/org/traccar/web/WebServer.java6
3 files changed, 6 insertions, 6 deletions
diff --git a/src/org/traccar/web/ConsoleServlet.java b/src/org/traccar/web/ConsoleServlet.java
index dddd13b6d..2b38a935a 100644
--- a/src/org/traccar/web/ConsoleServlet.java
+++ b/src/org/traccar/web/ConsoleServlet.java
@@ -54,7 +54,7 @@ public class ConsoleServlet extends WebServlet {
method.invoke(server, true);
} catch (NoSuchFieldException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
- LOGGER.warn(null, e);
+ LOGGER.warn("Console reflection error", e);
}
}
diff --git a/src/org/traccar/web/CsvBuilder.java b/src/org/traccar/web/CsvBuilder.java
index d5149b528..29e2ccfbc 100644
--- a/src/org/traccar/web/CsvBuilder.java
+++ b/src/org/traccar/web/CsvBuilder.java
@@ -106,12 +106,12 @@ public class CsvBuilder {
builder.append(map);
addSeparator();
} catch (JsonProcessingException e) {
- LOGGER.warn(null, e);
+ LOGGER.warn("Map JSON formatting error", e);
}
}
}
} catch (IllegalAccessException | InvocationTargetException error) {
- LOGGER.warn(null, error);
+ LOGGER.warn("Reflection invocation error", error);
}
}
}
diff --git a/src/org/traccar/web/WebServer.java b/src/org/traccar/web/WebServer.java
index 32c336164..8887b6af3 100644
--- a/src/org/traccar/web/WebServer.java
+++ b/src/org/traccar/web/WebServer.java
@@ -153,7 +153,7 @@ public class WebServer {
javax.naming.Context context = new InitialContext();
context.bind("java:/DefaultDS", dataSource);
} catch (Exception error) {
- LOGGER.warn(null, error);
+ LOGGER.warn("JNDI context error", error);
}
WebAppContext app = new WebAppContext();
@@ -199,7 +199,7 @@ public class WebServer {
try {
server.start();
} catch (Exception error) {
- LOGGER.warn(null, error);
+ LOGGER.warn("Web server start failed", error);
}
}
@@ -207,7 +207,7 @@ public class WebServer {
try {
server.stop();
} catch (Exception error) {
- LOGGER.warn(null, error);
+ LOGGER.warn("Web server stop failed", error);
}
}