mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 19:26:49 +01:00
Reduce error log sizes
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user