diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:51:29 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-09-15 11:51:29 +1200 |
commit | fa26dd5f14a991f327c26517a645c6b4f77c4a73 (patch) | |
tree | 26477b69c3aeca4cba7b6947cf6973d762841cda /src/org/traccar/web | |
parent | 2fb444df86d56246a8b5cee515eb91490c8dee05 (diff) | |
download | trackermap-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.java | 2 | ||||
-rw-r--r-- | src/org/traccar/web/CsvBuilder.java | 4 | ||||
-rw-r--r-- | src/org/traccar/web/WebServer.java | 6 |
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); } } |