summaryrefslogtreecommitdiffstats
path: root/EssentialsUpdate/src/net/ess3/update/UpdateFile.java
diff options
context:
space:
mode:
authordrtshock <thensler@wisc.edu>2013-05-02 22:19:28 -0500
committerdrtshock <thensler@wisc.edu>2013-05-02 22:19:28 -0500
commit3ff12f6bf52268b228aadbfbe634ca9ab0c135b6 (patch)
tree73ffe436673beeadd1768d36e137091a8f9fbffb /EssentialsUpdate/src/net/ess3/update/UpdateFile.java
parentf326d0ad0c22836fd0905b69303e9731ad268fe8 (diff)
downloadEssentials-3ff12f6bf52268b228aadbfbe634ca9ab0c135b6.tar
Essentials-3ff12f6bf52268b228aadbfbe634ca9ab0c135b6.tar.gz
Essentials-3ff12f6bf52268b228aadbfbe634ca9ab0c135b6.tar.lz
Essentials-3ff12f6bf52268b228aadbfbe634ca9ab0c135b6.tar.xz
Essentials-3ff12f6bf52268b228aadbfbe634ca9ab0c135b6.zip
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;