peer: print hex encoded failure reason for lnwire.UpdateFailHTLC in msg summaries

This commit is contained in:
Olaoluwa Osuntokun 2017-10-20 15:40:50 -07:00
parent 7c1ae8bda3
commit bb1fd98b67
No known key found for this signature in database
GPG Key ID: 964EA263DD637C21

View File

@ -803,7 +803,7 @@ func messageSummary(msg lnwire.Message) string {
msg.ChanID, msg.ID, msg.Amount, msg.Expiry, msg.PaymentHash[:])
case *lnwire.UpdateFailHTLC:
return fmt.Sprintf("chan_id=%v, id=%v, reason=%v", msg.ChanID,
return fmt.Sprintf("chan_id=%v, id=%v, reason=%x", msg.ChanID,
msg.ID, msg.Reason)
case *lnwire.UpdateFufillHTLC: