Skip to content

Commit

Permalink
perf: avoid string templating when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
tassiluca committed Oct 10, 2024
1 parent bb00ac8 commit bc00628
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ScalaExtrasPlugin : Plugin<Project> {
private fun Project.populateConfigurationTask(configuration: Configuration): TaskProvider<Task> =
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())
}
}
Expand Down

0 comments on commit bc00628

Please sign in to comment.