Fix metrics errors to be... descriptive.

This commit is contained in:
KHobbits 2012-04-15 15:12:42 +01:00
parent d08ea5a650
commit 75b7f7ac22

View File

@ -223,7 +223,7 @@ public class Metrics
} }
catch (IOException e) catch (IOException e)
{ {
Bukkit.getLogger().log(Level.INFO, "[Metrics] {0}", e.getMessage()); Bukkit.getLogger().log(Level.INFO, "[Metrics] " + e.getMessage());
} }
} }
}, 0, PING_INTERVAL * 1200); }, 0, PING_INTERVAL * 1200);
@ -246,12 +246,12 @@ public class Metrics
} }
catch (IOException ex) catch (IOException ex)
{ {
Bukkit.getLogger().log(Level.INFO, "[Metrics] {0}", ex.getMessage()); Bukkit.getLogger().log(Level.INFO, "[Metrics] " + ex.getMessage());
return true; return true;
} }
catch (InvalidConfigurationException ex) catch (InvalidConfigurationException ex)
{ {
Bukkit.getLogger().log(Level.INFO, "[Metrics] {0}", ex.getMessage()); Bukkit.getLogger().log(Level.INFO, "[Metrics] " + ex.getMessage());
return true; return true;
} }
return configuration.getBoolean("opt-out", false); return configuration.getBoolean("opt-out", false);