Commit 29682216 authored by Brian Tiger Chow's avatar Brian Tiger Chow

log(dht/pb) include key in dht message loggable

parent 195c2f3e
......@@ -6,6 +6,7 @@ import (
inet "github.com/jbenet/go-ipfs/p2p/net"
peer "github.com/jbenet/go-ipfs/p2p/peer"
eventlog "github.com/jbenet/go-ipfs/thirdparty/eventlog"
util "github.com/jbenet/go-ipfs/util"
)
var log = eventlog.Logger("dht.pb")
......@@ -142,6 +143,7 @@ func (m *Message) Loggable() map[string]interface{} {
return map[string]interface{}{
"message": map[string]string{
"type": m.Type.String(),
"key": util.Key(m.GetKey()).Pretty(),
},
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment