From ff198c25a80c030bf5d02399534f8d053c828511 Mon Sep 17 00:00:00 2001 From: Wesley Wolfe Date: Sat, 26 May 2012 14:33:27 -0500 Subject: Change logger references to explicitly use plugin logger --- src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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); } } -- cgit v1.2.3