From fa904fea27667175a727427fa3ab7ede3478c9e1 Mon Sep 17 00:00:00 2001 From: Brian Tracey Date: Mon, 27 Jan 2025 22:02:00 -0500 Subject: [PATCH 1/2] send scala native worker logging to stderr --- .../mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala b/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala index 29a1c008b5b..3c5be09ddcb 100644 --- a/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala +++ b/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala @@ -29,9 +29,9 @@ class ScalaNativeWorkerImpl extends mill.scalanativelib.worker.api.ScalaNativeWo def logger(level: NativeLogLevel): Logger = Logger( traceFn = msg => if (level.value >= NativeLogLevel.Trace.value) err.println(s"[trace] $msg"), - debugFn = msg => if (level.value >= NativeLogLevel.Debug.value) out.println(s"[debug] $msg"), - infoFn = msg => if (level.value >= NativeLogLevel.Info.value) out.println(s"[info] $msg"), - warnFn = msg => if (level.value >= NativeLogLevel.Warn.value) out.println(s"[warn] $msg"), + debugFn = msg => if (level.value >= NativeLogLevel.Debug.value) err.println(s"[debug] $msg"), + infoFn = msg => if (level.value >= NativeLogLevel.Info.value) err.println(s"[info] $msg"), + warnFn = msg => if (level.value >= NativeLogLevel.Warn.value) err.println(s"[warn] $msg"), errorFn = msg => if (level.value >= NativeLogLevel.Error.value) err.println(s"[error] $msg") ) From 9d2142f4055cae8d46a472070fe7900314166dbb Mon Sep 17 00:00:00 2001 From: "autofix-ci[bot]" <114827586+autofix-ci[bot]@users.noreply.github.com> Date: Tue, 28 Jan 2025 03:56:18 +0000 Subject: [PATCH 2/2] [autofix.ci] apply automated fixes --- example/javalib/module/8-annotation-processors/build.mill | 2 +- example/scalalib/module/11-main-class/build.mill | 2 +- .../src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/example/javalib/module/8-annotation-processors/build.mill b/example/javalib/module/8-annotation-processors/build.mill index dee830273a4..bd4a06c6e0c 100644 --- a/example/javalib/module/8-annotation-processors/build.mill +++ b/example/javalib/module/8-annotation-processors/build.mill @@ -58,4 +58,4 @@ Test bar.HelloWorldTest.testSimple finished... */ // Many Java frameworks and libraries such as xref:javalib/web-examples#_micronaut_hello_world_app[Micronaut] -// or ErrorProne use annotation processors, and can be set up in this way. \ No newline at end of file +// or ErrorProne use annotation processors, and can be set up in this way. diff --git a/example/scalalib/module/11-main-class/build.mill b/example/scalalib/module/11-main-class/build.mill index 591accab670..668fb97fa2d 100644 --- a/example/scalalib/module/11-main-class/build.mill +++ b/example/scalalib/module/11-main-class/build.mill @@ -21,4 +21,4 @@ Hello Qux */ // `def mainClass` also adds the -// main class to your `foo.jar` and `foo.assembly` jars. \ No newline at end of file +// main class to your `foo.jar` and `foo.assembly` jars. diff --git a/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala b/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala index 3c5be09ddcb..2c557778c9d 100644 --- a/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala +++ b/scalanativelib/worker/0.5/src/mill/scalanativelib/worker/ScalaNativeWorkerImpl.scala @@ -1,7 +1,7 @@ package mill.scalanativelib.worker import java.io.File -import java.lang.System.{err, out} +import java.lang.System.err import mill.scalanativelib.worker.api._ import scala.scalanative.util.Scope