diff options
author | Wesley Wolfe <weswolf@aol.com> | 2012-05-26 14:33:27 -0500 |
---|---|---|
committer | Wesley Wolfe <weswolf@aol.com> | 2012-05-26 14:33:27 -0500 |
commit | ff198c25a80c030bf5d02399534f8d053c828511 (patch) | |
tree | 422e92cdedc00f8ebd487e7b7b4756197d965cbe /src/main/java/org | |
parent | f8981b179286fff61157a67f0f947e5972df5fa2 (diff) | |
download | bukkit-ff198c25a80c030bf5d02399534f8d053c828511.tar bukkit-ff198c25a80c030bf5d02399534f8d053c828511.tar.gz bukkit-ff198c25a80c030bf5d02399534f8d053c828511.tar.lz bukkit-ff198c25a80c030bf5d02399534f8d053c828511.tar.xz bukkit-ff198c25a80c030bf5d02399534f8d053c828511.zip |
Change logger references to explicitly use plugin logger
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index f367b7f5..b7ecc181 100644 --- a/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/src/main/java/org/bukkit/plugin/java/JavaPlugin.java @@ -128,7 +128,7 @@ public abstract class JavaPlugin extends PluginBase { try { getConfig().save(configFile); } catch (IOException ex) { - Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, "Could not save config to " + configFile, ex); + getLogger().log(Level.SEVERE, "Could not save config to " + configFile, ex); } } @@ -166,10 +166,10 @@ public abstract class JavaPlugin extends PluginBase { out.close(); in.close(); } else { - Logger.getLogger(JavaPlugin.class.getName()).log(Level.WARNING, "Could not save " + outFile.getName() + " to " + outFile + " because " + outFile.getName() + " already exists."); + getLogger().log(Level.WARNING, "Could not save " + outFile.getName() + " to " + outFile + " because " + outFile.getName() + " already exists."); } } catch (IOException ex) { - Logger.getLogger(JavaPlugin.class.getName()).log(Level.SEVERE, "Could not save " + outFile.getName() + " to " + outFile, ex); + getLogger().log(Level.SEVERE, "Could not save " + outFile.getName() + " to " + outFile, ex); } } |