From afebfd7363c26f662051f557f2450d59202063e0 Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 20 Jul 2022 18:35:39 -0400 Subject: [PATCH] problem: not always clear why an upstream is not available --- .../io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt index c55fcb5a..480d6f8c 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/grpc/GrpcUpstreams.kt @@ -91,7 +91,7 @@ class GrpcUpstreams( client.describe(BlockchainOuterClass.DescribeRequest.newBuilder().build()) }.onErrorContinue { t, _ -> if (ExceptionUtils.indexOfType(t, ConnectException::class.java) >= 0) { - log.warn("gRPC upstream $host:$port is unavailable") + log.warn("gRPC upstream $host:$port is unavailable. (${t.javaClass}: ${t.message})") known.values.forEach { it.setStatus(UpstreamAvailability.UNAVAILABLE) }