mirror of
https://github.com/AuthMe/AuthMeReloaded.git
synced 2024-11-03 09:10:01 +01:00
Log an error if the plugin is unable to create the log file.
This commit is contained in:
parent
e6f2eb487d
commit
58a6b6060f
@ -44,7 +44,8 @@ public final class ConsoleLogger {
|
|||||||
if (fileWriter == null) {
|
if (fileWriter == null) {
|
||||||
try {
|
try {
|
||||||
fileWriter = new FileWriter(logFile, true);
|
fileWriter = new FileWriter(logFile, true);
|
||||||
} catch (IOException ignored) {
|
} catch (IOException e) {
|
||||||
|
ConsoleLogger.showError("Failed to create the log file:" + e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user