#495 Create ConsoleLogger method dedicated to logging exceptions

This commit is contained in:
ljacqu
2016-02-05 23:09:07 +01:00
parent 558cbf5848
commit c28a1b537f
14 changed files with 78 additions and 71 deletions
@@ -36,7 +36,7 @@ public class GeoLiteAPI {
plugin.getLogger().info(LICENSE);
return true;
} catch (IOException e) {
ConsoleLogger.writeStackTrace("Could not find/download GeoLiteAPI", e);
ConsoleLogger.logException("Could not find/download GeoLiteAPI", e);
return false;
}
}
@@ -63,7 +63,7 @@ public class GeoLiteAPI {
output.close();
input.close();
} catch (IOException e) {
ConsoleLogger.writeStackTrace("Could not download GeoLiteAPI", e);
ConsoleLogger.logException("Could not download GeoLiteAPI", e);
}
}
});