From fa26dd5f14a991f327c26517a645c6b4f77c4a73 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sat, 15 Sep 2018 11:51:29 +1200 Subject: Provide error messages --- src/org/traccar/api/AsyncSocket.java | 2 +- src/org/traccar/api/SecurityRequestFilter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/org/traccar/api') diff --git a/src/org/traccar/api/AsyncSocket.java b/src/org/traccar/api/AsyncSocket.java index 783aeb740..906d16b5b 100644 --- a/src/org/traccar/api/AsyncSocket.java +++ b/src/org/traccar/api/AsyncSocket.java @@ -89,7 +89,7 @@ public class AsyncSocket extends WebSocketAdapter implements ConnectionManager.U try { getRemote().sendString(Context.getObjectMapper().writeValueAsString(data), null); } catch (JsonProcessingException e) { - LOGGER.warn(null, e); + LOGGER.warn("Socket JSON formatting error", e); } } } diff --git a/src/org/traccar/api/SecurityRequestFilter.java b/src/org/traccar/api/SecurityRequestFilter.java index a76b34ad1..195c1f72f 100644 --- a/src/org/traccar/api/SecurityRequestFilter.java +++ b/src/org/traccar/api/SecurityRequestFilter.java @@ -96,7 +96,7 @@ public class SecurityRequestFilter implements ContainerRequestFilter { } } catch (SecurityException e) { - LOGGER.warn(null, e); + LOGGER.warn("Authentication error", e); } if (securityContext != null) { -- cgit v1.2.3