diff --git a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt index 4cab8e1..73e07ed 100644 --- a/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt +++ b/base/src/main/kotlin/de/staropensource/engine/base/implementation/logging/formatbuilder/SOSLSv2FormatBuilder.kt @@ -92,7 +92,7 @@ open class SOSLSv2FormatBuilder(call: Call, channelSettings: ChannelSettings?) : var messageFormat: String = this@SOSLSv2FormatBuilder.message if (ChannelSettings.getSetting(channelSettings, "sanitizeMessage") == false) - messageFormat = messageFormat.replace("\n", "\n") + messageFormat = messageFormat.lines().joinToString("\n") { line -> "${line}" } if (enabledFeatures.contains(Feature.FORMATTING)) append("${messageFormat}")