chain: trace log timed out ZMQ connections
This commit is contained in:
parent
36ca842905
commit
58ac163d48
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue