Only shows debug relay writes in DEBUG

pull/898/head
Vitor Pamplona 2024-06-03 11:47:20 -04:00
rodzic fb5f1e738b
commit eda4569b64
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -512,9 +512,11 @@ class Relay(
it.send(str) it.send(str)
RelayStats.addBytesSent(url, str.bytesUsedInMemory()) RelayStats.addBytesSent(url, str.bytesUsedInMemory())
if (BuildConfig.DEBUG) {
Log.d("Relay", "Relay send $url $str") Log.d("Relay", "Relay send $url $str")
} }
} }
}
fun close(subscriptionId: String) { fun close(subscriptionId: String) {
writeToSocket("""["CLOSE","$subscriptionId"]""") writeToSocket("""["CLOSE","$subscriptionId"]""")