Add more info about error heartbeat

This commit is contained in:
Victor Shcherb 2014-09-27 12:44:37 +03:00
parent 5e9a232a05
commit 82120c920e
2 changed files with 5 additions and 5 deletions

View file

@ -254,12 +254,12 @@ public class MapUtils {
}
public static int getPixelShiftX(float zoom, double long1, double long2, int tileSize){
public static int getPixelShiftX(float zoom, double long1, double long2, double tileSize){
return (int) ((getTileNumberX(zoom, long1) - getTileNumberX(zoom, long2)) * tileSize);
}
public static int getPixelShiftY(float zoom, double lat1, double lat2, int tileSize){
public static int getPixelShiftY(float zoom, double lat1, double lat2, double tileSize){
return (int) ((getTileNumberY(zoom, lat1) - getTileNumberY(zoom, lat2)) * tileSize);
}

View file

@ -165,7 +165,7 @@ public class OsMoThread {
}
} catch (Exception e) {
log.info("Exception selecting socket", e);
cmd("ERROR HEARTBEAT", true);
cmd("ERROR HEARTBEAT" + e.getMessage(), true);
e.printStackTrace();
if (activeChannel != null && !activeChannel.isConnected()) {
activeChannel = null;