aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorRenaud Allard <renaud@allard.it>2016-10-19 15:10:07 +0200
committerRenaud Allard <renaud@allard.it>2016-10-19 15:10:07 +0200
commite7a545ee8b6d03ab085896ac162da7ae12e5557d (patch)
treeaff7b64dea5d480b6ed576822db2e4467cb508c9 /src/org
parentbc40685dca74e5026d529456ee01e6a7627fb85e (diff)
downloadtrackermap-server-e7a545ee8b6d03ab085896ac162da7ae12e5557d.tar.gz
trackermap-server-e7a545ee8b6d03ab085896ac162da7ae12e5557d.tar.bz2
trackermap-server-e7a545ee8b6d03ab085896ac162da7ae12e5557d.zip
Log device uniqueId in filters logging
This combined with another commit to traccar-web makes it easier to see which device has been filtered.
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..9a6c7936a 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 logmsg = new StringBuilder();
+ logmsg.append("Position filtered by ");
+ logmsg.append(filterType.toString());
+ logmsg.append("filters from device: ");
+ logmsg.append(Context.getIdentityManager().getDeviceById(position.getDeviceId()).getUniqueId());
+ logmsg.append(" with id: ");
+ logmsg.append(position.getDeviceId());
+
+ Log.info(logmsg.toString());
return true;
}