From ea7a214ef46f97e409f556861192b573f6f4627e Mon Sep 17 00:00:00 2001 From: Risto Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Sun, 31 Oct 2021 13:28:17 +0200 Subject: [PATCH] Reduce size of error message from SpongeVersionChecker --- .../com/djrapitops/plan/version/SpongeVersionChecker.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/Plan/sponge/src/main/java/com/djrapitops/plan/version/SpongeVersionChecker.java b/Plan/sponge/src/main/java/com/djrapitops/plan/version/SpongeVersionChecker.java index 97e9e8496..65138279a 100644 --- a/Plan/sponge/src/main/java/com/djrapitops/plan/version/SpongeVersionChecker.java +++ b/Plan/sponge/src/main/java/com/djrapitops/plan/version/SpongeVersionChecker.java @@ -18,8 +18,6 @@ package com.djrapitops.plan.version; import com.djrapitops.plan.settings.config.PlanConfig; import com.djrapitops.plan.settings.locale.Locale; -import com.djrapitops.plan.settings.locale.lang.PluginLang; -import com.djrapitops.plan.utilities.logging.ErrorContext; import com.djrapitops.plan.utilities.logging.ErrorLogger; import com.djrapitops.plan.version.ore.OreVersionInfoLoader; import net.playeranalytics.plugin.scheduling.RunnableFactory; @@ -54,10 +52,7 @@ public class SpongeVersionChecker extends VersionChecker { try { return Optional.of(OreVersionInfoLoader.load()); } catch (IOException e) { - errorLogger.warn(e, ErrorContext.builder() - .related(locale.getString(PluginLang.VERSION_FAIL_READ_VERSIONS)) - .whatToDo("Allow Plan to check for updates from Ore (" + e.getMessage() + ") or disable update check from Plan config.") - .build()); + logger.warn("Failed to check updates from Ore (" + e.getMessage() + "), allow connection or disable update check from Plan config"); return Optional.empty(); } }