multi: enhance logging for debugging peer connection

This commit is contained in:
yyforyongyu
2021-12-13 03:56:20 +08:00
parent 5d9b59ac5a
commit 46050fc631
7 changed files with 42 additions and 20 deletions

View File

@ -125,9 +125,8 @@ func (r *ChannelRouter) notifyTopologyChange(topologyDiff *TopologyChange) {
return
}
log.Debugf("Sending topology notification to %v clients %v",
numClients,
newLogClosure(func() string {
log.Tracef("Sending topology notification to %v clients %v",
numClients, newLogClosure(func() string {
return spew.Sdump(topologyDiff)
}),
)