From d281cd8857ea29ce54537a30c58d6b898db09a75 Mon Sep 17 00:00:00 2001 From: a10zn8 Date: Sun, 19 Mar 2023 17:21:26 +0300 Subject: [PATCH] subscribeNodeStatus should write fewer logs (#174) --- .../kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt b/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt index 2f0b3a3d..5a12c063 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/rpc/BlockchainRpc.kt @@ -16,7 +16,6 @@ */ package io.emeraldpay.dshackle.rpc -import com.google.protobuf.util.JsonFormat import io.emeraldpay.api.proto.BlockchainOuterClass import io.emeraldpay.api.proto.Common import io.emeraldpay.api.proto.ReactorBlockchainGrpc @@ -232,13 +231,11 @@ class BlockchainRpc( failMetric.increment() } .doFinally { sig -> - log.info("Closing node status subscription named $subId with $sig") + log.info("Closing node status subscription named [$subId] with $sig") } .doOnNext { elem -> log.debug( - "Emitted next node status to [$subId] with data [${ - JsonFormat.printer().omittingInsignificantWhitespace().print(elem) - }]" + "Emitted next node status to [$subId] with [node: ${elem.nodeId}, chain: ${elem.description.chain.name}, status: ${elem.status.availability.name}, ]" ) } }