htlcswitch: add additional logging statement when forwarding HTLC's

This commit is contained in:
Olaoluwa Osuntokun 2017-07-30 17:42:57 -07:00
parent 07b0604458
commit 8eadd09403
No known key found for this signature in database
GPG Key ID: 9CC5B105D03521A2

View File

@ -691,6 +691,8 @@ func (l *channelLink) handleUpstreamMsg(msg lnwire.Message) {
// path.
htlcsToForward := l.processLockedInHtlcs(htlcs)
go func() {
log.Debugf("ChannelPoint(%v) forwarding %v HTLC's",
l.channel.ChannelPoint(), len(htlcsToForward))
for _, packet := range htlcsToForward {
if err := l.cfg.Switch.forward(packet); err != nil {
log.Errorf("channel link(%v): "+