From 748b94fb6cafee210b9cc72bc326a0f0a651926f Mon Sep 17 00:00:00 2001 From: Igor Artamonov Date: Wed, 12 Jun 2019 23:52:08 -0400 Subject: [PATCH] solution: show in log when gets an upstream --- src/main/kotlin/io/emeraldpay/dshackle/upstream/Upstream.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/io/emeraldpay/dshackle/upstream/Upstream.kt b/src/main/kotlin/io/emeraldpay/dshackle/upstream/Upstream.kt index 82116595..8835cbab 100644 --- a/src/main/kotlin/io/emeraldpay/dshackle/upstream/Upstream.kt +++ b/src/main/kotlin/io/emeraldpay/dshackle/upstream/Upstream.kt @@ -3,6 +3,7 @@ package io.emeraldpay.dshackle.upstream import io.emeraldpay.grpc.Chain import io.infinitape.etherjar.rpc.json.BlockJson import io.infinitape.etherjar.rpc.json.TransactionJson +import org.slf4j.LoggerFactory class Upstream( val chain: Chain, @@ -10,6 +11,8 @@ class Upstream( private val ethereumWs: EthereumWs? = null ) { + private val log = LoggerFactory.getLogger(Upstream::class.java) + val head: EthereumHead = if (ethereumWs != null) { EthereumWsHead(ethereumWs) } else { @@ -19,6 +22,6 @@ class Upstream( } init { - + log.info("Configured for ${chain.chainName}") } } \ No newline at end of file