Only shows debug relay writes in DEBUG

This commit is contained in:
Vitor Pamplona
2024-06-03 11:47:20 -04:00
parent fb5f1e738b
commit eda4569b64

View File

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