mirror of
https://github.com/songoda/EpicAnchors.git
synced 2024-11-22 18:15:53 +01:00
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:
parent
8bf3535f4f
commit
4d24e0a954
@ -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();
|
||||
|
@ -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() + "'");
|
||||
}
|
||||
|
||||
|
@ -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.");
|
||||
|
||||
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user