mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-23 10:35:18 +01:00
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:
parent
532d96f6c1
commit
7ef00bb8f9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user