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
This commit is contained in:
Christian Koop 2022-06-26 13:31:51 +02:00
parent 532d96f6c1
commit 7ef00bb8f9
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
1 changed files with 2 additions and 2 deletions

View File

@ -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);
}