Delete unnecessary logs

This commit is contained in:
Vitor Pamplona
2025-07-30 17:33:56 -04:00
parent e70f1fedc6
commit c6e103ff87
@@ -24,7 +24,6 @@ import android.util.Log
import androidx.collection.LruCache import androidx.collection.LruCache
import kotlinx.coroutines.CancellationException import kotlinx.coroutines.CancellationException
import org.czeal.rfc3986.URIReference import org.czeal.rfc3986.URIReference
import java.lang.RuntimeException
import kotlin.contracts.ExperimentalContracts import kotlin.contracts.ExperimentalContracts
val normalizedUrls = LruCache<String, NormalizedRelayUrl>(5000) val normalizedUrls = LruCache<String, NormalizedRelayUrl>(5000)
@@ -134,9 +133,6 @@ class RelayUrlNormalizer {
return null return null
} }
Log.w("RelayUrlNormalizer", "Rejected relay URL: $url")
throw RuntimeException("RelayError $trimmed")
return if (isOnion(trimmed) || isLocalHost(trimmed)) { return if (isOnion(trimmed) || isLocalHost(trimmed)) {
"ws://$trimmed" "ws://$trimmed"
} else { } else {
@@ -173,7 +169,6 @@ class RelayUrlNormalizer {
} }
} catch (e: Exception) { } catch (e: Exception) {
if (e is CancellationException) throw e if (e is CancellationException) throw e
e.printStackTrace()
Log.w("NormalizedRelayUrl", "Rejected Error $url") Log.w("NormalizedRelayUrl", "Rejected Error $url")
null null
} }