From 3ff12f6bf52268b228aadbfbe634ca9ab0c135b6 Mon Sep 17 00:00:00 2001 From: drtshock Date: Thu, 2 May 2013 22:19:28 -0500 Subject: More logging! --- EssentialsUpdate/src/net/ess3/update/UpdateFile.java | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'EssentialsUpdate/src/net/ess3/update/UpdateFile.java') diff --git a/EssentialsUpdate/src/net/ess3/update/UpdateFile.java b/EssentialsUpdate/src/net/ess3/update/UpdateFile.java index 117daab8c..ec9017461 100644 --- a/EssentialsUpdate/src/net/ess3/update/UpdateFile.java +++ b/EssentialsUpdate/src/net/ess3/update/UpdateFile.java @@ -19,7 +19,6 @@ import org.bukkit.plugin.Plugin; public class UpdateFile { - private final static Logger LOGGER = Bukkit.getLogger(); private final static String UPDATE_URL = "http://goo.gl/67jev"; private final static BigInteger PUBLIC_KEY = new BigInteger( "5ha6a2d4qdy17ttkg8evh74sl5a87djojwenu12k1lvy8ui6003e6l06rntczpoh99mhc3txj8mqlxw111oyy9yl7s7qpyluyzix3j1odxrxx4u52gxvyu6qiteapczkzvi7rxgeqsozz7b19rdx73a7quo9ybwpz1cr82r7x5k0pg2a73pjjsv2j1awr13azo7klrcxp9y5xxwf5qv1s3tw4zqftli18u0ek5qkbzfbgk1v5n2f11pkwwk6p0mibrn26wnjbv11vyiqgu95o7busmt6vf5q7grpcenl637w83mbin56s3asj1131b2mscj9xep3cbj7la9tgsxl5bj87vzy8sk2d34kzwqdqgh9nry43nqqus12l1stmiv184r8r3jcy8w43e8h1u1mzklldb5eytkuhayqik8l3ns04hwt8sgacvw534be8sx26qrn5s1", @@ -37,12 +36,12 @@ public class UpdateFile { if (file.exists() && !file.delete()) { - LOGGER.log(Level.SEVERE, "Could not delete file update.yml!"); + plugin.getLogger().log(Level.SEVERE, "Could not delete file update.yml!"); return; } if (!downloadFile() || !checkFile()) { - LOGGER.log(Level.SEVERE, "Could not download and verify file update.yml!"); + plugin.getLogger().log(Level.SEVERE, "Could not download and verify file update.yml!"); return; } } @@ -52,7 +51,7 @@ public class UpdateFile } catch (Exception ex) { - LOGGER.log(Level.SEVERE, "Could not load update.yml!"); + plugin.getLogger().log(Level.SEVERE, "Could not load update.yml!"); } } @@ -69,7 +68,7 @@ public class UpdateFile } catch (IOException ex) { - LOGGER.log(Level.SEVERE, "Error while downloading update.yml", ex); + plugin.getLogger().log(Level.SEVERE, "Error while downloading update.yml", ex); return false; } } @@ -163,7 +162,7 @@ public class UpdateFile } catch (Exception ex) { - LOGGER.log(Level.SEVERE, ex.getMessage(), ex); + plugin.getLogger().log(Level.SEVERE, ex.getMessage(), ex); } finally { @@ -176,7 +175,7 @@ public class UpdateFile } catch (IOException ex) { - LOGGER.log(Level.SEVERE, ex.getMessage(), ex); + plugin.getLogger().log(Level.SEVERE, ex.getMessage(), ex); } } return false; -- cgit v1.2.3