forked from ChomeNS/chomens-bot-java
f
This commit is contained in:
parent
3a6c1a0192
commit
58f9a40cb2
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ public class FileLoggerUtilities {
|
|||
public static void makeNewLogFile() throws IOException {
|
||||
currentLogDate = LocalDate.now();
|
||||
|
||||
Files.createFile(logPath);
|
||||
if (!Files.exists(logPath)) Files.createFile(logPath);
|
||||
|
||||
logWriter = Files.newBufferedWriter(logPath, StandardOpenOption.APPEND);
|
||||
logWriter.write(currentLogDate.toString() + '\n');
|
||||
|
|
Loading…
Reference in a new issue