aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/TrackerEventHandler.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2012-05-29 23:27:46 +0400
committerAnton Tananaev <anton.tananaev@gmail.com>2012-05-29 23:27:46 +0400
commit3b61199ca03a602514457cf7ed640ff6d9a39519 (patch)
tree14099d0648a01f5dc4299894df0fe232ff4870cb /src/org/traccar/TrackerEventHandler.java
parentbf8177e17e6ce607e60fe6e43ecf7401af51a03c (diff)
downloadtrackermap-server-3b61199ca03a602514457cf7ed640ff6d9a39519.tar.gz
trackermap-server-3b61199ca03a602514457cf7ed640ff6d9a39519.tar.bz2
trackermap-server-3b61199ca03a602514457cf7ed640ff6d9a39519.zip
fixed #3
Diffstat (limited to 'src/org/traccar/TrackerEventHandler.java')
-rw-r--r--src/org/traccar/TrackerEventHandler.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/TrackerEventHandler.java b/src/org/traccar/TrackerEventHandler.java
index 8378dece3..e4e45a174 100644
--- a/src/org/traccar/TrackerEventHandler.java
+++ b/src/org/traccar/TrackerEventHandler.java
@@ -16,6 +16,7 @@
package org.traccar;
import org.jboss.netty.channel.*;
+import org.traccar.helper.Log;
import org.traccar.model.DataManager;
import org.traccar.model.Position;
@@ -43,9 +44,9 @@ public class TrackerEventHandler extends SimpleChannelHandler {
Position position = (Position) e.getMessage();
if (position == null) {
- System.out.println("null message");
+ Log.info("null message");
} else {
- System.out.println(
+ Log.info(
"id: " + position.getId() +
", deviceId: " + position.getDeviceId() +
", valid: " + position.getValid() +
@@ -61,7 +62,7 @@ public class TrackerEventHandler extends SimpleChannelHandler {
try {
dataManager.addPosition(position);
} catch (Exception error) {
- System.out.println(error.getMessage());
+ Log.warning(error.getMessage());
}
}
}