aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BaseProtocolDecoder.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index 2cfe285a7..3bd39d594 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -52,7 +52,11 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
} else {
deviceId = 0;
if (logWarning) {
- Log.warning("Unknown device - " + uniqueId);
+ String message = "Unknown device - " + uniqueId;
+ if (remoteAddress != null) {
+ message += " (" + ((InetSocketAddress) remoteAddress).getHostString() + ")";
+ }
+ Log.warning(message);
}
return false;
}