mirror of
https://github.com/status-im/js-waku.git
synced 2025-02-23 18:38:11 +00:00
feat: improve log format for DNS discovery peers
This commit is contained in:
parent
e1bb2b351c
commit
61701f0086
@ -64,7 +64,15 @@ export class DnsNodeDiscovery {
|
|||||||
this._errorTolerance,
|
this._errorTolerance,
|
||||||
() => this._search(domain, context)
|
() => this._search(domain, context)
|
||||||
);
|
);
|
||||||
dbg("retrieved peers: ", peers);
|
dbg(
|
||||||
|
"retrieved peers: ",
|
||||||
|
peers.map((peer) => {
|
||||||
|
return {
|
||||||
|
id: peer.peerId?.toString(),
|
||||||
|
multiaddrs: peer.multiaddrs?.map((ma) => ma.toString()),
|
||||||
|
};
|
||||||
|
})
|
||||||
|
);
|
||||||
return peers;
|
return peers;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user