aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/core/util/geo
diff options
context:
space:
mode:
authorDraknyte1 <Draknyte1@hotmail.com>2017-12-20 23:39:49 +1000
committerDraknyte1 <Draknyte1@hotmail.com>2017-12-20 23:39:49 +1000
commit5715a32d2901922503fd850f3a68503fb77467c3 (patch)
tree7e12520fbc23844e99493d55af4410a785538e35 /src/Java/gtPlusPlus/core/util/geo
parent2a4795f65d98ff60a177d7d6a5552fd687d9f6e8 (diff)
downloadGT5-Unofficial-5715a32d2901922503fd850f3a68503fb77467c3.tar.gz
GT5-Unofficial-5715a32d2901922503fd850f3a68503fb77467c3.tar.bz2
GT5-Unofficial-5715a32d2901922503fd850f3a68503fb77467c3.zip
- Disabled some logging.
% Minor Project Clean-up, added missing Override annotations to 100+ methods & removed pointless casts. % Moved Logging to it's own class. $ Fixed Multi-block handling of Pollution. $ Fixed the GT 5.09 material enabler system. (From My Side, it's still borked on GTs). + Added a Dynamic Proxy invocation for IMaterialHandler. + Added an AutoMap data type, which is a Auto-incremental ID'd Hashmap wrapper.
Diffstat (limited to 'src/Java/gtPlusPlus/core/util/geo')
-rw-r--r--src/Java/gtPlusPlus/core/util/geo/GeoUtils.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java b/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java
index e1dba3b22d..84528e0cd5 100644
--- a/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java
+++ b/src/Java/gtPlusPlus/core/util/geo/GeoUtils.java
@@ -5,7 +5,7 @@ import java.net.*;
import org.apache.http.client.utils.URIBuilder;
-import gtPlusPlus.core.util.Utils;
+import gtPlusPlus.api.objects.Logger;
import gtPlusPlus.core.util.networking.NetworkUtils;
public class GeoUtils {
@@ -19,7 +19,7 @@ public class GeoUtils {
return "Offline.";
}
} catch (Throwable T){
- Utils.LOG_INFO("Failed to initialise GeoUtils.");
+ Logger.INFO("Failed to initialise GeoUtils.");
return "Failed.";
}
}
@@ -78,7 +78,7 @@ public class GeoUtils {
return result;
//Catch block for bad connection
} catch (IOException e) {
- Utils.LOG_INFO("Method 1 - Failed.");
+ Logger.INFO("Method 1 - Failed.");
}
//Secondary method
@@ -87,19 +87,19 @@ public class GeoUtils {
return r.replaceAll("(\\r|\\n)", "");
//Catch block for bad connection
} catch (java.io.IOException e) {
- Utils.LOG_INFO("Method 2 - Failed.");
+ Logger.INFO("Method 2 - Failed.");
}
}
//Catch block for all the Bad URI/URL building
catch (URISyntaxException | MalformedURLException e1) {
if (e1 instanceof URISyntaxException){
- Utils.LOG_INFO("Bad URI Syntax for builder.");
+ Logger.INFO("Bad URI Syntax for builder.");
}
else {
- Utils.LOG_INFO("Malformed URL.");
+ Logger.INFO("Malformed URL.");
}
- Utils.LOG_INFO("Country Check - Failed.");
+ Logger.INFO("Country Check - Failed.");
}
return "Error getting users Country. "+ipAddress;
}