@ -127,7 +127,7 @@ public class GraphService {
}
public void fillCountryAndCity(GeoIPCountry geoIPCountry, GeoIPCity geoIPCity) {
this.countryAndCity = geoIPCountry.GetCountry(connect_ip) + "/" + geoIPCity.GetCity(countryAndCity);
this.countryAndCity = geoIPCountry.GetCountry(connect_ip) + "/" + geoIPCity.GetCity(connect_ip);
@ -28,6 +28,7 @@ public class GeoIPCity extends BaseReader {
try {
return databaseReader.city(InetAddress.getByName(ip)).getCity().getName();
} catch (Exception e) {
logger.error("[IGNORING] Cannot fetch city of ip", e);
return "Unknown";
@ -28,6 +28,7 @@ public class GeoIPCountry extends BaseReader {
return databaseReader.country(InetAddress.getByName(ip)).getCountry().getName();
logger.error("[IGNORING] Cannot fetch country of ip");