diff --git a/routing/dht/dht.go b/routing/dht/dht.go
index f1c42272156fba21971177c5963fb2460130f479..e76ab571cf0e803066145f5f347c41c6211bb049 100644
--- a/routing/dht/dht.go
+++ b/routing/dht/dht.go
@@ -240,7 +240,7 @@ func (dht *IpfsDHT) putProvider(ctx context.Context, p peer.Peer, key string) er
 		return err
 	}
 
-	log.Debugf("%s putProvider: %s for %s", dht.self, p, key)
+	log.Debugf("%s putProvider: %s for %s", dht.self, p, u.Key(key))
 	if rpmes.GetKey() != pmes.GetKey() {
 		return errors.New("provider not added correctly")
 	}