From f663bb78aa715719771d28267d3f46b86c5563b9 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 20 Oct 2025 18:41:43 -0400 Subject: [PATCH] Reduce error log sizes --- .../quartz/nip28PublicChat/admin/ChannelCreateEvent.kt | 4 ++-- .../quartz/nip28PublicChat/admin/ChannelMetadataEvent.kt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelCreateEvent.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelCreateEvent.kt index 779b6439e..b808c21ab 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelCreateEvent.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelCreateEvent.kt @@ -64,11 +64,11 @@ class ChannelCreateEvent( if (content.isEmpty() || !content.startsWith("{") || isEncrypted()) { ChannelDataNorm() } else { - ChannelData.parse(content)?.normalize() ?: ChannelDataNorm() + ChannelData.parse(content).normalize() } } catch (e: Exception) { if (e is CancellationException) throw e - Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}", e) + Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}") ChannelDataNorm() } diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelMetadataEvent.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelMetadataEvent.kt index 9f87a6298..02ead09a9 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelMetadataEvent.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip28PublicChat/admin/ChannelMetadataEvent.kt @@ -74,7 +74,7 @@ class ChannelMetadataEvent( } } catch (e: Exception) { if (e is CancellationException) throw e - Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}", e) + Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}") ChannelDataNorm() }