discovery: fix confusing loggings

This commit is contained in:
yyforyongyu 2023-02-03 01:32:46 +08:00
parent 93b7821df3
commit c6c218f384
No known key found for this signature in database
GPG Key ID: 9BCD95C4FF296868

View File

@ -944,9 +944,7 @@ func (d *deDupedAnnouncements) addMsg(message networkMsg) {
// timestamp, then we'll just discard the message we got.
if oldTimestamp > msg.Timestamp {
log.Debugf("Ignored outdated network message: "+
"peer=%v, source=%x, msg=%s, ", message.peer,
message.source.SerializeCompressed(),
msg.MsgType())
"peer=%v, msg=%s", message.peer, msg.MsgType())
return
}
@ -1282,10 +1280,8 @@ func (d *AuthenticatedGossiper) networkHandler() {
case announcement := <-d.networkMsgs:
log.Tracef("Received network message: "+
"peer=%v, source=%x, msg=%s, is_remote=%v",
announcement.peer,
announcement.source.SerializeCompressed(),
announcement.msg.MsgType(),
"peer=%v, msg=%s, is_remote=%v",
announcement.peer, announcement.msg.MsgType(),
announcement.isRemote)
switch announcement.msg.(type) {
@ -2629,9 +2625,8 @@ func (d *AuthenticatedGossiper) handleChanUpdate(nMsg *networkMsg,
) {
log.Debugf("Ignored stale edge policy for short_chan_id(%v): "+
"peer=%v, source=%x, msg=%s, is_remote=%v", shortChanID,
nMsg.peer, nMsg.source.SerializeCompressed(),
nMsg.msg.MsgType(), nMsg.isRemote,
"peer=%v, msg=%s, is_remote=%v", shortChanID,
nMsg.peer, nMsg.msg.MsgType(), nMsg.isRemote,
)
nMsg.err <- nil