From 069311c47f8234d608ec256a7073fef6da1d37cd Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Mon, 12 Mar 2018 18:53:21 -0700 Subject: [PATCH] htlcswitch: log dangling circuits in unable to create new commitment --- htlcswitch/link.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/htlcswitch/link.go b/htlcswitch/link.go index 7193ac20..b7e8bbdc 100644 --- a/htlcswitch/link.go +++ b/htlcswitch/link.go @@ -1439,8 +1439,10 @@ func (l *channelLink) updateCommitTx() error { theirCommitSig, htlcSigs, err := l.channel.SignNextCommitment() if err == lnwallet.ErrNoWindow { - log.Tracef("revocation window exhausted, unable to send %v", - l.batchCounter) + l.tracef("revocation window exhausted, unable to send: %v, "+ + "dangling_opens=%v, dangling_closes%v", + l.batchCounter, spew.Sdump(l.openedCircuits), + spew.Sdump(l.closedCircuits)) return nil } else if err != nil { return err