aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-04 09:14:46 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-04 09:14:46 +1200
commitc5e5757e5911c08c12f35f0fe2791c710aa0a2a1 (patch)
tree1f032e613903ebdbe7cfe349d01a49c7140162e1 /src
parentf66ffa1facbf2a4f7ffbceb81c19f3f36cec230a (diff)
downloadtraccar-server-c5e5757e5911c08c12f35f0fe2791c710aa0a2a1.tar.gz
traccar-server-c5e5757e5911c08c12f35f0fe2791c710aa0a2a1.tar.bz2
traccar-server-c5e5757e5911c08c12f35f0fe2791c710aa0a2a1.zip
Log unique device id for commands
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/BaseProtocolEncoder.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/BaseProtocolEncoder.java b/src/org/traccar/BaseProtocolEncoder.java
index 2bf6cde66..a9aa24cb0 100644
--- a/src/org/traccar/BaseProtocolEncoder.java
+++ b/src/org/traccar/BaseProtocolEncoder.java
@@ -50,8 +50,8 @@ public abstract class BaseProtocolEncoder extends OneToOneEncoder {
// Log command
StringBuilder s = new StringBuilder();
s.append(String.format("[%08X] ", channel.getId()));
- s.append("command type: ").append(command.getType()).append(", ");
- s.append("id : ").append(command.getDeviceId()).append(" ");
+ s.append("id: ").append(getUniqueId(command.getDeviceId())).append(", ");
+ s.append("command type: ").append(command.getType()).append(" ");
if (encodedCommand != null) {
s.append("sent");
} else {