Removing unnecessary logs from the Relay class

pull/322/head
Vitor Pamplona 2023-03-28 09:01:47 -04:00
rodzic 9ae860a66a
commit 8eb3a47844
1 zmienionych plików z 1 dodań i 8 usunięć

Wyświetl plik

@ -92,13 +92,7 @@ class Relay(
when (type) {
"EVENT" -> {
// Log.w("Relay", "Relay onEVENT $url, $channel")
val event = Event.fromJson(msg[2], Client.lenient)
if (event.kind == 23195 || event.kind == 23196) {
println("AAAAA ${event.toJson()}")
}
listeners.forEach { it.onEvent(this@Relay, channel, event) }
listeners.forEach { it.onEvent(this@Relay, channel, Event.fromJson(msg[2], Client.lenient)) }
}
"EOSE" -> listeners.forEach {
// Log.w("Relay", "Relay onEOSE $url, $channel")
@ -106,7 +100,6 @@ class Relay(
}
"NOTICE" -> listeners.forEach {
// Log.w("Relay", "Relay onNotice $url, $channel")
// "channel" being the second string in the string array ...
it.onError(this@Relay, channel, Error("Relay sent notice: " + channel))
}
"OK" -> listeners.forEach {