multi: add more trace logs regarding link activate flow

This commit is contained in:
yyforyongyu
2023-03-20 16:35:09 +08:00
parent ae39cd9e91
commit 2b8e9a0d36
4 changed files with 17 additions and 3 deletions

View File

@@ -111,7 +111,11 @@ func messageStoreKey(msg lnwire.Message, peerPubKey [33]byte) ([]byte, error) {
// AddMessage adds a message to the store for this peer.
func (s *MessageStore) AddMessage(msg lnwire.Message, peerPubKey [33]byte) error {
// Construct the key for which we'll find this message with in the store.
log.Tracef("Adding message of type %v to store for peer %x",
msg.MsgType(), peerPubKey)
// Construct the key for which we'll find this message with in the
// store.
msgKey, err := messageStoreKey(msg, peerPubKey)
if err != nil {
return err
@@ -137,6 +141,9 @@ func (s *MessageStore) AddMessage(msg lnwire.Message, peerPubKey [33]byte) error
func (s *MessageStore) DeleteMessage(msg lnwire.Message,
peerPubKey [33]byte) error {
log.Tracef("Deleting message of type %v from store for peer %x",
msg.MsgType(), peerPubKey)
// Construct the key for which we'll find this message with in the
// store.
msgKey, err := messageStoreKey(msg, peerPubKey)