From 7ef00bb8f92ac6d9ccac5647d4951d48b1bb9df3 Mon Sep 17 00:00:00 2001 From: Christian Koop Date: Sun, 26 Jun 2022 13:31:51 +0200 Subject: [PATCH] Adjust log levels in SongodaYamlConfig Level.FINER is currently not logged anthough the Logger is set to ALL and isLoggable returns true for FINER. There's an bug existing bug report at Spigot: https://hub.spigotmc.org/jira/browse/SPIGOT-7018 --- .../songoda/core/configuration/songoda/SongodaYamlConfig.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java b/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java index cb74645f..d5221793 100644 --- a/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java +++ b/Core/src/main/java/com/songoda/core/configuration/songoda/SongodaYamlConfig.java @@ -79,7 +79,7 @@ public class SongodaYamlConfig extends YamlConfiguration { return true; } catch (IOException e) { - this.logger.log(Level.FINER, "Failed to load config file: " + this.file.getPath(), e); + this.logger.log(Level.SEVERE, "Failed to load config file: " + this.file.getPath(), e); } return false; @@ -235,7 +235,7 @@ public class SongodaYamlConfig extends YamlConfiguration { StandardCopyOption.REPLACE_EXISTING ); - this.logger.warning("Created backup copy of config file '" + this.file.getPath() + "' to '" + targetPath + "'"); + this.logger.info("Created backup copy of config file '" + this.file.getPath() + "' to '" + targetPath + "'"); } catch (IOException ex) { throw new IOException(this.cannotCreateBackupCopyExceptionPrefix + this.file.getPath(), ex); }