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/protocol | |
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/protocol')
-rw-r--r-- | src/org/traccar/protocol/AplicomProtocolDecoder.java | 2 | ||||
-rw-r--r-- | src/org/traccar/protocol/Mta6ProtocolDecoder.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/org/traccar/protocol/AplicomProtocolDecoder.java b/src/org/traccar/protocol/AplicomProtocolDecoder.java index bb821893a..e2ac3c736 100644 --- a/src/org/traccar/protocol/AplicomProtocolDecoder.java +++ b/src/org/traccar/protocol/AplicomProtocolDecoder.java @@ -198,7 +198,7 @@ public class AplicomProtocolDecoder extends BaseProtocolDecoder { } break; default: - LOGGER.warn(null, new UnsupportedOperationException()); + LOGGER.warn("Aplicom CAN decoding error", new UnsupportedOperationException()); break; } } diff --git a/src/org/traccar/protocol/Mta6ProtocolDecoder.java b/src/org/traccar/protocol/Mta6ProtocolDecoder.java index ec20658c7..88419b871 100644 --- a/src/org/traccar/protocol/Mta6ProtocolDecoder.java +++ b/src/org/traccar/protocol/Mta6ProtocolDecoder.java @@ -88,7 +88,7 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder { previousFloat = (previousFloat & 0xff000000) + ((buf.readUnsignedMedium() & 0x3fffff) << 2); break; default: - LOGGER.warn(null, new IllegalArgumentException()); + LOGGER.warn("MTA6 float decoding error", new IllegalArgumentException()); break; } return Float.intBitsToFloat(previousFloat); @@ -195,7 +195,7 @@ public class Mta6ProtocolDecoder extends BaseProtocolDecoder { positions.add(position); } } catch (IndexOutOfBoundsException error) { - LOGGER.warn(null, error); + LOGGER.warn("MTA6 parsing error", error); } return positions; |