aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http/WebServer.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/http/WebServer.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/http/WebServer.java')
-rw-r--r--src/org/traccar/http/WebServer.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java
index 53cdb2966..cf7b21623 100644
--- a/src/org/traccar/http/WebServer.java
+++ b/src/org/traccar/http/WebServer.java
@@ -28,6 +28,7 @@ import javax.servlet.http.HttpServletResponse;
import org.eclipse.jetty.server.Request;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.server.handler.AbstractHandler;
+import org.traccar.helper.Log;
import org.traccar.model.DataManager;
import org.traccar.model.Device;
import org.traccar.model.Position;
@@ -160,7 +161,7 @@ public class WebServer {
}
} catch (Exception error) {
out.print("{'success':false,'results':[");
- System.out.println(error.getMessage());
+ Log.warning(error.getMessage());
}
out.print("]}");
@@ -196,7 +197,7 @@ public class WebServer {
try {
server.start();
} catch (Exception error) {
- System.out.println(error.getMessage());
+ Log.warning(error.getMessage());
}
}
@@ -204,7 +205,7 @@ public class WebServer {
try {
server.stop();
} catch (Exception error) {
- System.out.println(error.getMessage());
+ Log.warning(error.getMessage());
}
}