Skip to content

Commit

Permalink
fix: remove NotFound check and only debug log error setting agentVersion
Browse files Browse the repository at this point in the history
Co-authored-by: Nico Flaig <nflaig@protonmail.com>
  • Loading branch information
matthewkeil and nflaig authored Jan 31, 2024
1 parent 892df82 commit 473a445
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions packages/beacon-node/src/network/peers/peerManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -619,13 +619,8 @@ export class PeerManager {
}
},
{retries: 3, retryDelay: 1000}
).catch((err: Error) => {
if (err.message.includes("NotFound")) {
return this.logger.debug("Peer not found when attempting to set agentVersion", {
peerId: peerData.peerId.toString(),
});
}
this.logger.error("Error setting agentVersion for the peer", {peerId: peerData.peerId.toString()}, err);
).catch((err) => {
this.logger.debug("Error setting agentVersion for the peer", {peerId: peerData.peerId.toString()}, err);
});
};

Expand Down

0 comments on commit 473a445

Please sign in to comment.