From 3b61199ca03a602514457cf7ed640ff6d9a39519 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Tue, 29 May 2012 23:27:46 +0400 Subject: fixed #3 --- src/org/traccar/http/WebServer.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/org/traccar/http') 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()); } } -- cgit v1.2.3