From 0196928af7da6bf64d520ddef53aad78c64250ca Mon Sep 17 00:00:00 2001 From: "Alexander.Likhachev" Date: Thu, 9 Nov 2023 22:20:47 +0100 Subject: [PATCH] [BTA] Add debug logging about the used compilation strategy ^KT-61860 In Progress --- .../kotlin/buildtools/internal/CompilationServiceImpl.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/CompilationServiceImpl.kt b/compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/CompilationServiceImpl.kt index 93c93d83e83..7eb58121be4 100644 --- a/compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/CompilationServiceImpl.kt +++ b/compiler/build-tools/kotlin-build-tools-impl/src/main/kotlin/org/jetbrains/kotlin/buildtools/internal/CompilationServiceImpl.kt @@ -123,6 +123,7 @@ internal object CompilationServiceImpl : CompilationService { sources: List, arguments: List, ): CompilationResult { + loggerAdapter.kotlinLogger.debug("Compiling using the in-process strategy") val compiler = K2JVMCompiler() val parsedArguments = compiler.createArguments() parseCommandLineArguments(arguments, parsedArguments) @@ -182,6 +183,7 @@ internal object CompilationServiceImpl : CompilationService { sources: List, arguments: List, ): CompilationResult { + loggerAdapter.kotlinLogger.debug("Compiling using the daemon strategy") val compilerId = CompilerId.makeCompilerId(getCurrentClasspath()) val sessionIsAliveFlagFile = buildIdToSessionFlagFile.computeIfAbsent(projectId) { createSessionIsAliveFlagFile()