mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-11-15 07:05:52 +01:00
Improve update checker startup message logging (#4039)
* Use plugin logger for update checker * Use info log level when update checker is disabled Closes #4038.
This commit is contained in:
parent
94d4385d41
commit
eca6a9f247
@ -392,9 +392,9 @@ public class Essentials extends JavaPlugin implements net.ess3.api.IEssentials {
|
||||
|
||||
updateChecker = new UpdateChecker(this);
|
||||
runTaskAsynchronously(() -> {
|
||||
LOGGER.log(Level.INFO, tl("versionFetching"));
|
||||
getLogger().log(Level.INFO, tl("versionFetching"));
|
||||
for (String str : updateChecker.getVersionMessages(false, true)) {
|
||||
LOGGER.log(Level.WARNING, str);
|
||||
getLogger().log(getSettings().isUpdateCheckEnabled() ? Level.WARNING : Level.INFO, str);
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user