Skip to content

Commit cdce9f6

Browse files
Tweak Scala Native logging
When running Scala Native tests, this avoids printing lines such as ``` Starting process '…/.scala-build/project/native/main' on port '63602'. ``` (unless verbosity is increased)
1 parent e2cc1c7 commit cdce9f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/cli/src/main/scala/scala/cli/internal/CliLogger.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,9 @@ class CliLogger(
165165
new sn.Logger {
166166
def trace(msg: Throwable) = ()
167167
def debug(msg: String) = logger.debug(msg)
168-
def info(msg: String) = logger.message(msg)
168+
def info(msg: String) = logger.log(msg)
169169
def warn(msg: String) = logger.log(msg)
170-
def error(msg: String) = logger.log(msg)
170+
def error(msg: String) = logger.message(msg)
171171
}
172172

173173
val scalaNativeCliInternalLoggerOptions: List[String] = {

0 commit comments

Comments
 (0)