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.
|
// error to prevent spamming the logs.
|
||||||
netErr, ok := err.(net.Error)
|
netErr, ok := err.(net.Error)
|
||||||
if ok && netErr.Timeout() {
|
if ok && netErr.Timeout() {
|
||||||
|
log.Trace("Re-establishing timed out ZMQ " +
|
||||||
|
"block connection")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -279,6 +281,8 @@ func (c *BitcoindConn) txEventHandler() {
|
||||||
// error to prevent spamming the logs.
|
// error to prevent spamming the logs.
|
||||||
netErr, ok := err.(net.Error)
|
netErr, ok := err.(net.Error)
|
||||||
if ok && netErr.Timeout() {
|
if ok && netErr.Timeout() {
|
||||||
|
log.Trace("Re-establishing timed out ZMQ " +
|
||||||
|
"transaction connection")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue