Reduce error log sizes

This commit is contained in:
Vitor Pamplona
2025-10-20 18:41:43 -04:00
parent a163c4188f
commit f663bb78aa
2 changed files with 3 additions and 3 deletions

View File

@@ -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()
}

View File

@@ -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()
}