diff options
author | Robby <robby@k-state.edu> | 2019-01-15 21:02:36 -0600 |
---|---|---|
committer | Robby <robby@k-state.edu> | 2019-01-15 21:02:36 -0600 |
commit | 1afeeadec528c9a67133e83940c04f63914438b8 (patch) | |
tree | d12aa13230be8541ff601eb9fba80848f3ba6246 /main/core/src | |
parent | 738be726656afcdc45267523679f0d8185d834d4 (diff) | |
download | mill-1afeeadec528c9a67133e83940c04f63914438b8.tar.gz mill-1afeeadec528c9a67133e83940c04f63914438b8.tar.bz2 mill-1afeeadec528c9a67133e83940c04f63914438b8.zip |
Fixed #511.
Diffstat (limited to 'main/core/src')
-rwxr-xr-x[-rw-r--r--] | main/core/src/util/Loggers.scala | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/main/core/src/util/Loggers.scala b/main/core/src/util/Loggers.scala index 4771d782..dd7d111d 100644..100755 --- 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) |