Skip to content

Commit

Permalink
feat: improve log format for DNS discovery peers
Browse files Browse the repository at this point in the history
  • Loading branch information
fryorcraken committed Aug 25, 2022
1 parent dbc570d commit 3b7318b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/lib/peer_discovery_dns/dns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ export class DnsNodeDiscovery {
this._errorTolerance,
() => 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;
}

Expand Down

0 comments on commit 3b7318b

Please sign in to comment.