aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorRenaud Allard <renaud@allard.it>2016-10-17 23:54:53 +0200
committerRenaud Allard <renaud@allard.it>2016-10-17 23:54:53 +0200
commit54d48825f34b1a211960b68c98a817eedcdbba9c (patch)
tree9cbeb76a431e4aa716f384c2ad74340d6b545f62 /src/org
parent8756277141ff7549cb0a019e8f67bef58948bd59 (diff)
downloadtraccar-server-54d48825f34b1a211960b68c98a817eedcdbba9c.tar.gz
traccar-server-54d48825f34b1a211960b68c98a817eedcdbba9c.tar.bz2
traccar-server-54d48825f34b1a211960b68c98a817eedcdbba9c.zip
Rework the circumvoluted logic in filter logging
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/FilterHandler.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/FilterHandler.java b/src/org/traccar/FilterHandler.java
index 725f9c429..f1df7ce2c 100644
--- a/src/org/traccar/FilterHandler.java
+++ b/src/org/traccar/FilterHandler.java
@@ -175,10 +175,14 @@ public class FilterHandler extends BaseDataHandler {
filterType.append("Distance ");
}
- if (!"".equals(filterType.toString()) && !filterLimit(p)) {
+ if (filterType.length() > 0) {
result = true;
}
+ if (filterLimit(p)) {
+ result = false;
+ }
+
if (result) {
Log.info("Position filtered by " + filterType.toString() + "filters from " + p.getDeviceId());
}