From 58a6b6060fe027e00bf424e1b00cbd02d90676bf Mon Sep 17 00:00:00 2001 From: Gabriele C Date: Wed, 1 Jun 2016 11:40:50 +0200 Subject: [PATCH] Log an error if the plugin is unable to create the log file. --- src/main/java/fr/xephi/authme/ConsoleLogger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/fr/xephi/authme/ConsoleLogger.java b/src/main/java/fr/xephi/authme/ConsoleLogger.java index 29b8c5f64..ff8a067e8 100644 --- a/src/main/java/fr/xephi/authme/ConsoleLogger.java +++ b/src/main/java/fr/xephi/authme/ConsoleLogger.java @@ -44,7 +44,8 @@ public final class ConsoleLogger { if (fileWriter == null) { try { fileWriter = new FileWriter(logFile, true); - } catch (IOException ignored) { + } catch (IOException e) { + ConsoleLogger.showError("Failed to create the log file:" + e); } } } else {