Commit 3a8cbdef authored by Tomas Virgl's avatar Tomas Virgl Committed by GitHub

Update lookup.go

parent ff9720c9
......@@ -30,7 +30,10 @@ func toPeerInfos(ps []peer.ID) []*pstore.PeerInfo {
}
func loggableKey(k string) logging.LoggableMap {
if cid, err := cid.Cast([]byte(k)); err == nil {
cid, err := cid.Cast([]byte(k))
if err != nil {
log.Errorf("loggableKey could not cast key: %v", err)
} else {
k = cid.String()
}
return logging.LoggableMap{
......
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