aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/protocol/NavisProtocolDecoder.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-12-04 22:22:07 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2012-12-04 22:22:07 +1300
commit206600cd599e03eaa095619fc8a52b742d3413a1 (patch)
treeaf6c677f54c987c7c7ba5e1d75c1c30796e1b860 /src/org/traccar/protocol/NavisProtocolDecoder.java
parenta59ca5006a4d3547fbbb2931ad8a163f332ad65b (diff)
downloadtrackermap-server-206600cd599e03eaa095619fc8a52b742d3413a1.tar.gz
trackermap-server-206600cd599e03eaa095619fc8a52b742d3413a1.tar.bz2
trackermap-server-206600cd599e03eaa095619fc8a52b742d3413a1.zip
Added unknown device logging (fix #102)
Diffstat (limited to 'src/org/traccar/protocol/NavisProtocolDecoder.java')
-rw-r--r--src/org/traccar/protocol/NavisProtocolDecoder.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/protocol/NavisProtocolDecoder.java b/src/org/traccar/protocol/NavisProtocolDecoder.java
index 1b3cd80f7..291d2b87c 100644
--- a/src/org/traccar/protocol/NavisProtocolDecoder.java
+++ b/src/org/traccar/protocol/NavisProtocolDecoder.java
@@ -277,12 +277,11 @@ public class NavisProtocolDecoder extends GenericProtocolDecoder {
private Object processHandshake(Channel channel, ChannelBuffer buf) {
buf.readByte(); // semicolon symbol
imei = buf.toString(Charset.defaultCharset());
-
try {
databaseDeviceId = getDataManager().getDeviceByImei(imei).getId();
sendReply(channel, ChannelBuffers.copiedBuffer(ByteOrder.LITTLE_ENDIAN, "*<S", charset));
} catch(Exception error) {
- Log.warning(error.toString());
+ Log.warning("Unknown device - " + imei);
}
return null;
}