trim null characters in logs

This commit is contained in:
Chloe committed 2025-01-18 14:53:32 -07:00
1 parent 1236180425
commit 500d3ba015
1 file changed
+3 -1
@@ -212,7 +212,9 @@ data class LogLine(
val identifier = time.toJavaInstant() val identifier = time.toJavaInstant()
val messageTrimmed by lazy { this.message.trim() } val messageTrimmed by lazy {
this.message.trim { it <= ' ' }
}
val formattedTime by lazy { this.time.toLocalDateTime(TimeZone.currentSystemDefault()) } val formattedTime by lazy { this.time.toLocalDateTime(TimeZone.currentSystemDefault()) }
val asSimpleString by lazy { val asSimpleString by lazy {