Metrics errors aren't important.

This commit is contained in:
KHobbits 2012-03-15 01:32:08 +00:00
parent 5e8fd3993d
commit 8776f4c1c0

View file

@ -45,9 +45,9 @@ public class MetricsStarter implements Runnable
return; 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(); 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());
} }
} }