mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 22:56:41 +01:00
Reduce error log sizes
This commit is contained in:
@@ -64,11 +64,11 @@ class ChannelCreateEvent(
|
|||||||
if (content.isEmpty() || !content.startsWith("{") || isEncrypted()) {
|
if (content.isEmpty() || !content.startsWith("{") || isEncrypted()) {
|
||||||
ChannelDataNorm()
|
ChannelDataNorm()
|
||||||
} else {
|
} else {
|
||||||
ChannelData.parse(content)?.normalize() ?: ChannelDataNorm()
|
ChannelData.parse(content).normalize()
|
||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e is CancellationException) throw e
|
if (e is CancellationException) throw e
|
||||||
Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}", e)
|
Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}")
|
||||||
ChannelDataNorm()
|
ChannelDataNorm()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ class ChannelMetadataEvent(
|
|||||||
}
|
}
|
||||||
} catch (e: Exception) {
|
} catch (e: Exception) {
|
||||||
if (e is CancellationException) throw e
|
if (e is CancellationException) throw e
|
||||||
Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}", e)
|
Log.w("ChannelCreateEvent", "Failure to parse ${this.toJson()}")
|
||||||
ChannelDataNorm()
|
ChannelDataNorm()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user