diff options
author | Renaud Allard <renaud@allard.it> | 2016-10-17 23:54:53 +0200 |
---|---|---|
committer | Renaud Allard <renaud@allard.it> | 2016-10-17 23:54:53 +0200 |
commit | 54d48825f34b1a211960b68c98a817eedcdbba9c (patch) | |
tree | 9cbeb76a431e4aa716f384c2ad74340d6b545f62 /src/org/traccar | |
parent | 8756277141ff7549cb0a019e8f67bef58948bd59 (diff) | |
download | traccar-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/traccar')
-rw-r--r-- | src/org/traccar/FilterHandler.java | 6 |
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()); } |