summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/net/ess3/update/UpdateFile.java
diff options
context:
space:
mode:
authorIaccidentally <coryhuckaby@gmail.com>2013-05-02 20:24:20 -0700
committerIaccidentally <coryhuckaby@gmail.com>2013-05-02 20:24:20 -0700
commit59f91be43a92d2fe34448df1d58fabffd4776f24 (patch)
tree5563c3b842304fa73f0a0f4fdd812a5b1caf3a2d /EssentialsUpdate/src/net/ess3/update/UpdateFile.java
parentc16b09a9eaf6cf1f8c4b9e37f33f4e4295de9113 (diff)
parent3ff12f6bf52268b228aadbfbe634ca9ab0c135b6 (diff)
downloadEssentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.gz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.lz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.tar.xz
Essentials-59f91be43a92d2fe34448df1d58fabffd4776f24.zip
Merge pull request #470 from drtshock/master
More logging!
Diffstat (limited to 'EssentialsUpdate/src/net/ess3/update/UpdateFile.java')
-rw-r--r--EssentialsUpdate/src/net/ess3/update/UpdateFile.java13
1 files changed, 6 insertions, 7 deletions
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;