aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 16:56:52 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-08-02 16:56:52 +1200
commita219a1c07373627484838f3559a4f60be3aac55f (patch)
tree408b7812372df4ce8670c22f7bf1adc7831caabe /src/org
parentd4a507f6d0e6c55bdc3eaaac966327acff4f74ba (diff)
parentca8117866731b8f2a776dcf516e76447f63a8e7f (diff)
downloadtrackermap-server-a219a1c07373627484838f3559a4f60be3aac55f.tar.gz
trackermap-server-a219a1c07373627484838f3559a4f60be3aac55f.tar.bz2
trackermap-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.java4
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);