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 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 {
|
} ?: run {
|
||||||
DefaultImageHeader(note, accountViewModel)
|
DefaultImageHeader(note, accountViewModel)
|
||||||
}
|
}
|
||||||
|
|
||||||
title?.let {
|
title?.let {
|
||||||
Text(
|
Text(
|
||||||
text = it,
|
text = it,
|
||||||
|
|||||||
@@ -49,10 +49,10 @@ class SubscriptionStats {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun printCounter() {
|
fun printCounter(tag: String) {
|
||||||
eventCounter.forEach {
|
eventCounter.forEach {
|
||||||
Log.d(
|
Log.d(
|
||||||
"STATE DUMP ${this.javaClass.simpleName}",
|
tag,
|
||||||
"Received Events ${it.value.subscriptionId} ${it.value.eventKind}: ${it.value.counter}",
|
"Received Events ${it.value.subscriptionId} ${it.value.eventKind}: ${it.value.counter}",
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user