mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 14:27:29 +01:00
Prints better logs for relay subscriptions
This commit is contained in:
@@ -103,5 +103,5 @@ class RelaySubscriptionsCoordinator(
|
||||
|
||||
fun destroy() = all.forEach { it.destroy() }
|
||||
|
||||
fun printCounters() = all.forEach { it.stats.printCounter() }
|
||||
fun printCounters() = all.forEach { it.stats.printCounter("${it.javaClass.simpleName}") }
|
||||
}
|
||||
|
||||
@@ -100,7 +100,6 @@ fun LongFormHeader(
|
||||
} ?: run {
|
||||
DefaultImageHeader(note, accountViewModel)
|
||||
}
|
||||
|
||||
title?.let {
|
||||
Text(
|
||||
text = it,
|
||||
|
||||
@@ -49,10 +49,10 @@ class SubscriptionStats {
|
||||
}
|
||||
}
|
||||
|
||||
fun printCounter() {
|
||||
fun printCounter(tag: String) {
|
||||
eventCounter.forEach {
|
||||
Log.d(
|
||||
"STATE DUMP ${this.javaClass.simpleName}",
|
||||
tag,
|
||||
"Received Events ${it.value.subscriptionId} ${it.value.eventKind}: ${it.value.counter}",
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user