mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-31 21:48:32 +01:00
Reduce size of error message from SpongeVersionChecker
This commit is contained in:
parent
efd3b75a29
commit
ea7a214ef4
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user