From bc0062861ea2615e327a1bbcb5e7e429e98ae4d1 Mon Sep 17 00:00:00 2001 From: Luca Tassinari Date: Thu, 10 Oct 2024 23:11:43 +0200 Subject: [PATCH] perf: avoid string templating when logging --- .../kotlin/io/github/tassiluca/scalaextras/ScalaExtrasPlugin.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/github/tassiluca/scalaextras/ScalaExtrasPlugin.kt b/src/main/kotlin/io/github/tassiluca/scalaextras/ScalaExtrasPlugin.kt index 6091d44..93c286f 100644 --- a/src/main/kotlin/io/github/tassiluca/scalaextras/ScalaExtrasPlugin.kt +++ b/src/main/kotlin/io/github/tassiluca/scalaextras/ScalaExtrasPlugin.kt @@ -48,7 +48,7 @@ class ScalaExtrasPlugin : Plugin { private fun Project.populateConfigurationTask(configuration: Configuration): TaskProvider = tasks.register("populate${configuration.javaClass.simpleName}") { it.doLast { - logger.info("Picking up configuration ${configuration.resolvedConfiguration.get()}") + logger.info("Picking up configuration {}", configuration.resolvedConfiguration.get()) configuration.generatedConfigurationFile.createWithContent(configuration.resolvedConfiguration.get()) } }