diff --git a/roborazzi-ai-openai/src/commonMain/kotlin/com/github/takahirom/roborazzi/OpenAiAiAssertionModel.kt b/roborazzi-ai-openai/src/commonMain/kotlin/com/github/takahirom/roborazzi/OpenAiAiAssertionModel.kt index 8b22aacd..bdb13cd0 100644 --- a/roborazzi-ai-openai/src/commonMain/kotlin/com/github/takahirom/roborazzi/OpenAiAiAssertionModel.kt +++ b/roborazzi-ai-openai/src/commonMain/kotlin/com/github/takahirom/roborazzi/OpenAiAiAssertionModel.kt @@ -57,7 +57,11 @@ class OpenAiAiAssertionModel( } if (loggingEnabled) { install(Logging) { - logger = Logger.SIMPLE + logger = object: Logger { + override fun log(message: String) { + Logger.SIMPLE.log(message.replace(apiKey, "API_KEY")) + } + } level = LogLevel.ALL } }