From 1afeeadec528c9a67133e83940c04f63914438b8 Mon Sep 17 00:00:00 2001 From: Robby Date: Tue, 15 Jan 2019 21:02:36 -0600 Subject: Fixed #511. --- main/core/src/util/Loggers.scala | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) mode change 100644 => 100755 main/core/src/util/Loggers.scala (limited to 'main') diff --git a/main/core/src/util/Loggers.scala b/main/core/src/util/Loggers.scala old mode 100644 new mode 100755 index 4771d782..dd7d111d --- a/main/core/src/util/Loggers.scala +++ b/main/core/src/util/Loggers.scala @@ -111,11 +111,7 @@ case class FileLogger(colored: Boolean, file: os.Path, debugEnabled: Boolean) ex new PrintStream(new FileOutputStream(file.toIO.getAbsolutePath)) } - lazy val errorStream = { - if (!outputStreamUsed) os.remove.all(file) - outputStreamUsed = true - new PrintStream(new FileOutputStream(file.toIO.getAbsolutePath)) - } + lazy val errorStream = outputStream def info(s: String) = outputStream.println(s) def error(s: String) = outputStream.println(s) -- cgit v1.2.3