mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-27 07:56:38 +00:00
replaced stderr output for exception by logging
Change-Id: I3a1ce245a120028d59c43b5a771484bbe604f7f7
This commit is contained in:
+4
-1
@@ -12,6 +12,8 @@ import java.util.HashMap;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
|
||||
import org.osgi.util.tracker.ServiceTracker;
|
||||
|
||||
@@ -39,6 +41,7 @@ import com.sap.sse.common.Util;
|
||||
*
|
||||
*/
|
||||
public abstract class WindStatusServlet extends SailingServerHttpServlet implements IgtimiWindListener, BulkFixReceiver {
|
||||
private static final Logger logger = Logger.getLogger(WindStatusServlet.class.getName());
|
||||
private static final long serialVersionUID = -6791613843435003810L;
|
||||
|
||||
protected static final String PARAM_RELOAD_WIND_RECEIVER="reloadWindReceiver";
|
||||
@@ -244,7 +247,7 @@ public abstract class WindStatusServlet extends SailingServerHttpServlet impleme
|
||||
try {
|
||||
igtimiConnection.stop();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
logger.log(Level.WARNING, "Exception trying to stop Igtimi connection "+igtimiConnection, e);
|
||||
}
|
||||
}
|
||||
igtimiConnections.clear();
|
||||
|
||||
Reference in New Issue
Block a user