diff options
author | Satish K. Pagare <spagare@silver.(none)> | 2015-08-01 16:07:40 +0530 |
---|---|---|
committer | Satish K. Pagare <spagare@silver.(none)> | 2015-08-01 16:07:40 +0530 |
commit | 38d92c6241131c3e028e0d2c2e6795af983a106e (patch) | |
tree | 5ac32f8141a29847e3554fc4f4abe7d08e00ed89 /src | |
parent | e7dfc6bd5f518f1a479abdb5be6e19f12222b682 (diff) | |
download | trackermap-server-38d92c6241131c3e028e0d2c2e6795af983a106e.tar.gz trackermap-server-38d92c6241131c3e028e0d2c2e6795af983a106e.tar.bz2 trackermap-server-38d92c6241131c3e028e0d2c2e6795af983a106e.zip |
Added speed and course information to the traccar log. This would help render the track on a different UI. As well this information could be pushed into elasticsearch via logstash for better analytics.
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/MainEventHandler.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/MainEventHandler.java b/src/org/traccar/MainEventHandler.java index 9c28d7c9d..e0d7b0962 100644 --- a/src/org/traccar/MainEventHandler.java +++ b/src/org/traccar/MainEventHandler.java @@ -41,7 +41,9 @@ public class MainEventHandler extends IdleStateAwareChannelHandler { s.append("id: ").append(position.getDeviceId()).append(", "); s.append("time: ").append(position.getFixTime()).append(", "); s.append("lat: ").append(position.getLatitude()).append(", "); - s.append("lon: ").append(position.getLongitude()); + s.append("lon: ").append(position.getLongitude()).append(", "); + s.append("speed: ").append(position.getSpeed()).append(", "); + s.append("course: ").append(position.getCourse()).append(", "); Log.info(s.toString()); Context.getConnectionManager().update(position); |