From c5e5757e5911c08c12f35f0fe2791c710aa0a2a1 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 4 Sep 2016 09:14:46 +1200 Subject: Log unique device id for commands --- src/org/traccar/BaseProtocolEncoder.java | 4 ++-- 1 file 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 { -- cgit v1.2.3