mirror of
https://github.com/lightningnetwork/lnd.git
synced 2025-09-25 17:51:17 +02:00
peer: add message summaries for ping+pong
This commit is contained in:
@@ -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",
|
||||
|
Reference in New Issue
Block a user