#495 Create ConsoleLogger method dedicated to logging exceptions

This commit is contained in:
ljacqu
2016-02-05 23:09:07 +01:00
parent 558cbf5848
commit c28a1b537f
14 changed files with 78 additions and 71 deletions
@@ -26,7 +26,7 @@ public class ReloadCommand implements ExecutableCommand {
plugin.setupDatabase();
} catch (Exception e) {
sender.sendMessage("Error occurred during reload of AuthMe: aborting");
ConsoleLogger.writeStackTrace("Fatal error occurred! AuthMe instance ABORTED!", e);
ConsoleLogger.logException("Aborting! Encountered exception during reload of AuthMe:", e);
plugin.stopOrUnload();
}