mirror of https://github.com/sbt/sbt.git
Restore println in ConsoleAppender
In a few places, I used this pattern in an attempt to debug some ui issues. It is incorrect because it doesn't use System.lineSeparator and is also pointless.
This commit is contained in:
parent
314d9a295d
commit
6ff4406aa6
|
|
@ -494,11 +494,7 @@ class ConsoleAppender private[ConsoleAppender] (
|
|||
private def write(msg: String): Unit = {
|
||||
val toWrite =
|
||||
if (!useFormat || !ansiCodesSupported) EscHelpers.removeEscapeSequences(msg) else msg
|
||||
/*
|
||||
* Use print + flush rather than println to prevent log lines from getting interleaved.
|
||||
*/
|
||||
out.print(toWrite + "\n")
|
||||
out.flush()
|
||||
out.println(toWrite)
|
||||
}
|
||||
|
||||
private def appendMessage(level: Level.Value, msg: Message): Unit =
|
||||
|
|
|
|||
Loading…
Reference in New Issue