Skip to content

Commit

Permalink
fix: pretty print peerId
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Nov 18, 2024
1 parent 72df22b commit f0338fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/beacon-node/src/network/peers/peerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,7 @@ export class PeerManager {
try {
const reason = GOODBYE_KNOWN_CODES[goodbye.toString()] || "";
this.metrics?.peerGoodbyeSent.inc({reason});
this.logger.debug("disconnected peer", {reason, peerId: peer.toString()});
this.logger.debug("disconnected peer", {reason, peerId: prettyPrintPeerId(peer)});

const conn = getConnection(this.libp2p, peer.toString());
if (conn && Date.now() - conn.timeline.open > LONG_PEER_CONNECTION_MS) {
Expand Down

0 comments on commit f0338fa

Please sign in to comment.