peer: add message summaries for ping+pong

This commit is contained in:
Olaoluwa Osuntokun
2021-08-12 15:30:13 -07:00
parent d566e51a52
commit 4287e25494

View File

@@ -1632,12 +1632,10 @@ func messageSummary(msg lnwire.Message) string {
msg.NodeID, time.Unix(int64(msg.Timestamp), 0))
case *lnwire.Ping:
// No summary.
return ""
return fmt.Sprintf("ping_bytes=%x", msg.PaddingBytes[:])
case *lnwire.Pong:
// No summary.
return ""
return fmt.Sprintf("pong_bytes=%x", msg.PongBytes[:])
case *lnwire.UpdateFee:
return fmt.Sprintf("chan_id=%v, fee_update_sat=%v",