1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-10 16:48:05 +02:00

Metrics errors aren't important.

This commit is contained in:
KHobbits
2012-03-15 01:32:08 +00:00
parent e751c92c8c
commit e2423aef46

View File

@@ -45,9 +45,9 @@ public class MetricsStarter implements Runnable
return;
}
}
catch (IOException e)
catch (IOException ex)
{
ess.getLogger().log(Level.WARNING, "[Metrics] " + e.getMessage(), e);
metricsError(ex);
}
}
@@ -78,9 +78,21 @@ public class MetricsStarter implements Runnable
metrics.start();
}
catch (IOException e)
catch (IOException ex)
{
ess.getLogger().log(Level.WARNING, "[Metrics] " + e.getMessage(), e);
metricsError(ex);
}
}
public void metricsError(IOException ex)
{
if (ess.getSettings().isDebug())
{
ess.getLogger().log(Level.INFO, "[Metrics] " + ex.getMessage(), ex);
}
else
{
ess.getLogger().log(Level.INFO, "[Metrics] " + ex.getMessage());
}
}