discovery: add log when attempting to send msg reliably and peer is offline
This commit is contained in:
parent
abfbdf6aec
commit
3e81e89062
@ -181,9 +181,19 @@ out:
|
|||||||
// ignored for now since the peer is currently offline. Once
|
// ignored for now since the peer is currently offline. Once
|
||||||
// they reconnect, the messages will be sent since they should
|
// they reconnect, the messages will be sent since they should
|
||||||
// have been persisted to disk.
|
// have been persisted to disk.
|
||||||
case <-peerMgr.msgs:
|
case msg := <-peerMgr.msgs:
|
||||||
|
// Retrieve the short channel ID for which this message
|
||||||
|
// applies for logging purposes. The error can be
|
||||||
|
// ignored as the store can only contain messages which
|
||||||
|
// have a ShortChannelID field.
|
||||||
|
shortChanID, _ := msgShortChanID(msg)
|
||||||
|
log.Debugf("Received request to send %v message for "+
|
||||||
|
"channel=%v while peer=%x is offline",
|
||||||
|
msg.MsgType(), shortChanID, peerPubKey)
|
||||||
|
|
||||||
case peer = <-peerChan:
|
case peer = <-peerChan:
|
||||||
break out
|
break out
|
||||||
|
|
||||||
case <-s.quit:
|
case <-s.quit:
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user