From 3b35e0472d31c2c4d6a679d0ecdcaad7637e00fc Mon Sep 17 00:00:00 2001 From: Bukkit/Spigot Date: Sat, 26 May 2012 14:33:27 -0500 Subject: [PATCH] Change logger references to explicitly use plugin logger By: Wesley Wolfe --- .../src/main/java/org/bukkit/plugin/java/JavaPlugin.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java b/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java index f367b7f5fd..b7ecc18111 100644 --- a/paper-api/src/main/java/org/bukkit/plugin/java/JavaPlugin.java +++ b/paper-api/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); } }