mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2024-08-23 19:57:43 +00:00
Metrics errors aren't important.
This commit is contained in:
parent
5e8fd3993d
commit
8776f4c1c0
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue