diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-02 16:56:52 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-08-02 16:56:52 +1200 |
commit | a219a1c07373627484838f3559a4f60be3aac55f (patch) | |
tree | 408b7812372df4ce8670c22f7bf1adc7831caabe /src/org | |
parent | d4a507f6d0e6c55bdc3eaaac966327acff4f74ba (diff) | |
parent | ca8117866731b8f2a776dcf516e76447f63a8e7f (diff) | |
download | traccar-server-a219a1c07373627484838f3559a4f60be3aac55f.tar.gz traccar-server-a219a1c07373627484838f3559a4f60be3aac55f.tar.bz2 traccar-server-a219a1c07373627484838f3559a4f60be3aac55f.zip |
Merge pull request #1328 from asatsi/master
Added speed and course to log
Diffstat (limited to 'src/org')
-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..ca3d42e10 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()); Log.info(s.toString()); Context.getConnectionManager().update(position); |