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:
@@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user