From 58ac163d48b72095670321b789e948294467eb09 Mon Sep 17 00:00:00 2001 From: Wilmer Paulino Date: Fri, 8 Nov 2019 12:39:00 -0800 Subject: [PATCH] chain: trace log timed out ZMQ connections --- chain/bitcoind_conn.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chain/bitcoind_conn.go b/chain/bitcoind_conn.go index 8dafe92..01f01f9 100644 --- a/chain/bitcoind_conn.go +++ b/chain/bitcoind_conn.go @@ -197,6 +197,8 @@ func (c *BitcoindConn) blockEventHandler() { // error to prevent spamming the logs. netErr, ok := err.(net.Error) if ok && netErr.Timeout() { + log.Trace("Re-establishing timed out ZMQ " + + "block connection") continue } @@ -279,6 +281,8 @@ func (c *BitcoindConn) txEventHandler() { // error to prevent spamming the logs. netErr, ok := err.(net.Error) if ok && netErr.Timeout() { + log.Trace("Re-establishing timed out ZMQ " + + "transaction connection") continue }