mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-12 12:23:59 +00:00
Metrics errors aren't important.
This commit is contained in:
parent
5e8fd3993d
commit
8776f4c1c0
1 changed files with 16 additions and 4 deletions
|
@ -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