From 73811b4e9b64fa967c1f22486d840fee99e04551 Mon Sep 17 00:00:00 2001 From: friendseeker <66892505+Friendseeker@users.noreply.github.com> Date: Tue, 17 Dec 2024 00:22:53 -0800 Subject: [PATCH] Use provided logger instead of xsbt.Log.debug --- .../scala/sbt/internal/inc/javac/AnalyzingJavaCompiler.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/zinc/src/main/scala/sbt/internal/inc/javac/AnalyzingJavaCompiler.scala b/zinc/src/main/scala/sbt/internal/inc/javac/AnalyzingJavaCompiler.scala index a7b6faa78..6aa73c711 100644 --- a/zinc/src/main/scala/sbt/internal/inc/javac/AnalyzingJavaCompiler.scala +++ b/zinc/src/main/scala/sbt/internal/inc/javac/AnalyzingJavaCompiler.scala @@ -32,7 +32,6 @@ import xsbti.{ import sbt.util.InterfaceUtil import sbt.util.Logger -import xsbt.Log.debug /** * Define a Java compiler that reports on any discovered source dependencies or @@ -169,7 +168,7 @@ final class AnalyzingJavaCompiler private[sbt] ( ).toArray val javaSources: Array[VirtualFile] = sources.sortBy(_.id).toArray - debug(log, prettyPrintCompilationArguments(args)) + log.debug(InterfaceUtil.toSupplier(prettyPrintCompilationArguments(args))) val success = javac.run(javaSources, args, output, incToolOptions, reporter, log) if (!success) {