Use LogLevel SEVERE instead of FINER

Because Spigot - Thats fucking why. Hiding the logged messages in the console and log file.
why tf
This commit is contained in:
Christian Koop 2022-12-26 20:26:01 +01:00
parent 8bf3535f4f
commit 4d24e0a954
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
4 changed files with 5 additions and 5 deletions

View File

@ -115,7 +115,7 @@ public final class EpicAnchors extends SongodaPlugin {
for (World w : Bukkit.getWorlds()) {
this.anchorManager.initAnchorsAsync(w, (ex) -> {
if (ex != null) {
this.getLogger().log(Level.FINER, ex, () -> "Failed to initialize world '" + w.getName() + "'");
this.getLogger().log(Level.SEVERE, ex, () -> "Failed to initialize world '" + w.getName() + "'");
}
tSync.release();

View File

@ -77,7 +77,7 @@ public class AnchorMigration extends DataMigrationManager {
} else {
abortMigration.set(true);
plugin.getLogger().log(Level.WARNING, ex, () -> "Error migrating Anchor '" + locationStr + "' from '" +
plugin.getLogger().log(Level.SEVERE, ex, () -> "Error migrating Anchor '" + locationStr + "' from '" +
legacyData.getFile().getName() + "'");
}

View File

@ -73,7 +73,7 @@ public class AnchorTask extends BukkitRunnable {
try {
NmsManager.getWorld().randomTickChunk(chunk, randomTicks);
} catch (NoSuchFieldException | IllegalAccessException ex) {
this.plugin.getLogger().log(Level.FINER, ex,
this.plugin.getLogger().log(Level.SEVERE, ex,
() -> "Failed to do random ticks on this server implementation(/version) - " +
"Skipping further random ticks.");
@ -85,7 +85,7 @@ public class AnchorTask extends BukkitRunnable {
try {
NmsManager.getWorld().tickInactiveSpawners(chunk, TASK_INTERVAL);
} catch (NoSuchFieldException | IllegalAccessException ex) {
this.plugin.getLogger().log(Level.FINER, ex,
this.plugin.getLogger().log(Level.SEVERE, ex,
() -> "Failed to do spawner ticks on this server implementation(/version) - " +
"Skipping further spawner ticks.");

View File

@ -55,6 +55,6 @@ public class Utils {
public static void logException(@Nullable Plugin plugin, @NotNull Throwable th, @Nullable String type) {
Logger logger = plugin != null ? plugin.getLogger() : Logger.getGlobal();
logger.log(Level.FINER, th, () -> "A " + (type == null ? "critical" : type) + " error occurred");
logger.log(Level.SEVERE, th, () -> "A " + (type == null ? "critical" : type) + " error occurred");
}
}