Prints better logs for relay subscriptions

This commit is contained in:
Vitor Pamplona
2025-05-06 19:38:13 -04:00
parent b801125ff5
commit be0a559b7d
3 changed files with 3 additions and 4 deletions

View File

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

View File

@@ -100,7 +100,6 @@ fun LongFormHeader(
} ?: run {
DefaultImageHeader(note, accountViewModel)
}
title?.let {
Text(
text = it,

View File

@@ -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}",
)
}