aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-20 20:59:39 +1300
committerGitHub <noreply@github.com>2016-10-20 20:59:39 +1300
commit1b903a5fb7d54201b81805ae549a8ece31300366 (patch)
tree8cdff4b3bf3a4ac2cb0582b4c7eb72773b6fd8a2 /src/org
parent4f7356cc1c6962f46ca522246d5b63dc06a2d268 (diff)
parentd997b79ec28ae8f2d8778ee388c342dbf40bc40e (diff)
downloadtrackermap-server-1b903a5fb7d54201b81805ae549a8ece31300366.tar.gz
trackermap-server-1b903a5fb7d54201b81805ae549a8ece31300366.tar.bz2
trackermap-server-1b903a5fb7d54201b81805ae549a8ece31300366.zip
Merge pull request #2461 from renaudallard/master
Log device uniqueId in filters logging
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/FilterHandler.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java
index 83d79a3c0..f9904ccaf 100644
--- a/src/org/traccar/FilterHandler.java
+++ b/src/org/traccar/FilterHandler.java
@@ -175,7 +175,16 @@ public class FilterHandler extends BaseDataHandler {
}
if (filterType.length() > 0 && !filterLimit(position)) {
- Log.info("Position filtered by " + filterType.toString() + "filters from " + position.getDeviceId());
+
+ StringBuilder message = new StringBuilder();
+ message.append("Position filtered by ");
+ message.append(filterType.toString());
+ message.append("filters from device: ");
+ message.append(Context.getIdentityManager().getDeviceById(position.getDeviceId()).getUniqueId());
+ message.append(" with id: ");
+ message.append(position.getDeviceId());
+
+ Log.info(message.toString());
return true;
}