From c83c84e61ec20220dcdd1b89690190bfe627db6e Mon Sep 17 00:00:00 2001 From: TheBusyBiscuit Date: Sun, 19 Sep 2021 15:34:30 +0200 Subject: [PATCH] [CI skip] Updated changelog --- CHANGELOG.md | 2 ++ .../slimefun4/core/services/MetricsService.java | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a455e6c9a..cdfcd6bb3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,10 +34,12 @@ #### Additions #### Changes +* Massive performance improvements for Cargo networks #### Fixes * Fixed #3218 * Fixed #3241 +* Fixed #3248 ## Release Candidate 28 (06 Sep 2021) diff --git a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java index b783b0bf3..e186004c4 100644 --- a/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java +++ b/src/main/java/io/github/thebusybiscuit/slimefun4/core/services/MetricsService.java @@ -2,6 +2,7 @@ package io.github.thebusybiscuit.slimefun4.core.services; import java.io.File; import java.io.IOException; +import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.net.URL; import java.net.URLClassLoader; @@ -44,7 +45,7 @@ public class MetricsService { * The Name of our repository - Version 2 of this repo (due to big breaking changes) */ private static final String REPO_NAME = "MetricsModule2"; - + /** * The name of the metrics jar file. */ @@ -140,6 +141,8 @@ public class MetricsService { try { start.invoke(null); plugin.getLogger().info("Metrics build #" + version + " started."); + } catch (InvocationTargetException e) { + plugin.getLogger().log(Level.WARNING, "An exception was thrown while starting the metrics module", e.getCause()); } catch (Exception | LinkageError e) { plugin.getLogger().log(Level.WARNING, "Failed to start metrics.", e); }