From eb531d0449cb3b95a3d3ff9a03a0ad0e15e91651 Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 5 Mar 2020 15:57:28 +0100 Subject: [PATCH] htlcswitch: add causing error to log and err msg --- htlcswitch/link.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 7c834827..9b8323cd 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -627,7 +627,7 @@ func (l *channelLink) syncChanStates() error { if err := l.cfg.Peer.SendMessage(true, localChanSyncMsg); err != nil { return fmt.Errorf("Unable to send chan sync message for "+ - "ChannelPoint(%v)", l.channel.ChannelPoint()) + "ChannelPoint(%v): %v", l.channel.ChannelPoint(), err) } var msgsToReSend []lnwire.Message @@ -3121,7 +3121,7 @@ func (l *channelLink) fail(linkErr LinkFailureError, return } - l.log.Errorf("failing link: %s", reason) + l.log.Errorf("failing link: %s with error: %v", reason, linkErr) // Set failed, such that we won't process any more updates, and notify // the peer about the failure.