From c8f51380aa95a43cb042834c7853bc80ccb2889a Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 2 Oct 2025 16:41:47 -0400 Subject: [PATCH] Fixes error messages in BasicRelayClient --- .../nip01Core/relay/client/single/basic/BasicRelayClient.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/relay/client/single/basic/BasicRelayClient.kt b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/relay/client/single/basic/BasicRelayClient.kt index ecf3e2143..d01a0e73d 100644 --- a/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/relay/client/single/basic/BasicRelayClient.kt +++ b/quartz/src/commonMain/kotlin/com/vitorpamplona/quartz/nip01Core/relay/client/single/basic/BasicRelayClient.kt @@ -258,7 +258,7 @@ open class BasicRelayClient( } catch (e: Throwable) { if (e is CancellationException) throw e stats.newError("Error processing: $text") - Log.e(logTag, "Error processing: $text") + Log.e(logTag, "Error processing: $text", e) listener.onError(this@BasicRelayClient, "", Error("Error processing $text")) } } @@ -296,7 +296,7 @@ open class BasicRelayClient( } private fun processEose(msg: EoseMessage) { - // Log.w(logTag, "EOSE ${msg.subId}") + Log.d(logTag, "EOSE ${msg.subId}") afterEOSEPerSubscription[msg.subId] = true listener.onEOSE(this, msg.subId, TimeUtils.now()) } @@ -311,7 +311,7 @@ open class BasicRelayClient( msg: OkMessage, onConnected: () -> Unit, ) { - Log.w(logTag, "OK: ${msg.eventId} ${msg.success} ${msg.message}") + Log.d(logTag, "OK: ${msg.eventId} ${msg.success} ${msg.message}") // if this is the OK of an auth event, renew all subscriptions and resend all outgoing events. if (authResponseWatcher.containsKey(msg.eventId)) {