Skip to content

Commit

Permalink
fix: use prettyPrintPeerId
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewkeil committed Nov 21, 2024
1 parent f0338fa commit f589d96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/beacon-node/src/network/peers/score/store.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import {PeerId} from "@libp2p/interface";
import {Logger, MapDef, pruneSetToMax} from "@lodestar/utils";
import {NetworkCoreMetrics} from "../../core/metrics.js";
import {prettyPrintPeerId} from "../../util.js";
import {DEFAULT_SCORE, MAX_ENTRIES, MAX_SCORE, MIN_SCORE, SCORE_THRESHOLD} from "./constants.js";
import {
IPeerRpcScoreStore,
Expand Down Expand Up @@ -60,7 +61,7 @@ export class PeerRpcScoreStore implements IPeerRpcScoreStore {
const scoreChange = peerActionScore[action];
const newScore = peerScore.add(scoreChange);

this.logger?.debug("peer score adjusted", {scoreChange, newScore, peerId: peer.toString(), actionName});
this.logger?.debug("peer score adjusted", {scoreChange, newScore, peerId: prettyPrintPeerId(peer), actionName});
this.metrics?.peersReportPeerCount.inc({reason: actionName});
}

Expand Down

0 comments on commit f589d96

Please sign in to comment.