multi: enhance logging for debugging peer connection

This commit is contained in:
yyforyongyu committed 2021-12-23 15:14:37 +08:00
1 parent 5d9b59ac5a
commit 46050fc631
7 files changed
+42 -20

No files matched your search

+2 -2
View File
@@ -1744,7 +1744,7 @@ func (lc *LightningChannel) restoreCommitState(
}
lc.localCommitChain.addCommitment(localCommit)
lc.log.Debugf("starting local commitment: %v",
lc.log.Tracef("starting local commitment: %v",
newLogClosure(func() string {
return spew.Sdump(lc.localCommitChain.tail())
}),
@@ -1760,7 +1760,7 @@ func (lc *LightningChannel) restoreCommitState(
}
lc.remoteCommitChain.addCommitment(remoteCommit)
lc.log.Debugf("starting remote commitment: %v",
lc.log.Tracef("starting remote commitment: %v",
newLogClosure(func() string {
return spew.Sdump(lc.remoteCommitChain.tail())
}),