From c20933f835dda7c6194c747add4028e280a2cdd2 Mon Sep 17 00:00:00 2001 From: JeremyStarTM Date: Sun, 29 Dec 2024 23:51:35 +0100 Subject: [PATCH] Ensure runtime feature is properly padded --- .../logging/formatbuilder/SOSLSv2FormatBuilder.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 0d18498..96e4dfb 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 @@ -116,7 +116,7 @@ open class SOSLSv2FormatBuilder(call: Call, channelSettings: ChannelSettings?) : format.append("[") val differenceTime: Duration = call.creationTime.minus(Logger.Companion.initializationTime) - format.append("${differenceTime.inWholeSeconds}.${differenceTime.inWholeMilliseconds.minus(differenceTime.inWholeSeconds.times(1000))}s") + format.append("${differenceTime.inWholeSeconds}.${differenceTime.inWholeMilliseconds.minus(differenceTime.inWholeSeconds.times(1000)).toString().padEnd(3, '0')}s") if (enabledFeatures.contains(Feature.FORMATTING)) format.append("")