From dbb10b6e13e679f9bca5cd3f1504c97e5824d957 Mon Sep 17 00:00:00 2001 From: Josha von Gizycki Date: Sun, 17 Aug 2025 18:10:50 +0200 Subject: [PATCH] remove sensitive information from logging, add mocking for future testing --- pom.xml | 6 ++++++ src/main/kotlin/alfred/web/core/runner/ScriptRunner.kt | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 4344ab4..b0fe47f 100644 --- a/pom.xml +++ b/pom.xml @@ -85,6 +85,12 @@ kotlin-test-junit5 test + + io.mockk + mockk-jvm + 1.14.5 + test + diff --git a/src/main/kotlin/alfred/web/core/runner/ScriptRunner.kt b/src/main/kotlin/alfred/web/core/runner/ScriptRunner.kt index 29ef24f..7fc5b2d 100644 --- a/src/main/kotlin/alfred/web/core/runner/ScriptRunner.kt +++ b/src/main/kotlin/alfred/web/core/runner/ScriptRunner.kt @@ -23,7 +23,7 @@ class ScriptRunner( val config = builds.buildConfig(buildId) val logFile = builds.createLogFile(buildId) - logger.info("preparing process for build $buildId with config $config") + logger.info("preparing process for build $buildId") logger.info("log file: ${logFile.backingFile.absolutePath}") val ctx = BuildContext(