Skip to content

Commit

Permalink
chore(reporters): Improve log wording about the generated (temporary)…
Browse files Browse the repository at this point in the history
… file

A generated file is clearly an output, so drop that word, also as the
file might not be the final output, but only temporary output which is
further processed into the final report.

Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth authored and fviernau committed Dec 7, 2023
1 parent 4d532d8 commit f9d1124
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class FreemarkerTemplateProcessor(
templateIds.forEach { id ->
val outputFile = outputDir.resolve("$filePrefix$id$fileExtensionWithDot")

logger.info { "Generating output file '$outputFile' using template id '$id'." }
logger.info { "Generating file '$outputFile' using template id '$id'." }

val template = freemarkerConfig.getTemplate("$id.ftl")
outputFile.writer().use { template.process(dataModel, it) }
Expand All @@ -131,7 +131,7 @@ class FreemarkerTemplateProcessor(
templateFiles.forEach { file ->
val outputFile = outputDir.resolve("$filePrefix${file.nameWithoutExtension}$fileExtensionWithDot")

logger.info { "Generating output file '$outputFile' using template file '${file.absolutePath}'." }
logger.info { "Generating file '$outputFile' using template file '${file.absolutePath}'." }

val template = freemarkerConfig.run {
setDirectoryForTemplateLoading(file.parentFile)
Expand Down

0 comments on commit f9d1124

Please sign in to comment.