Skip to content

Commit

Permalink
fix: log errors setting agent version as debug (#6374)
Browse files Browse the repository at this point in the history
* feat: ignore NotFound error for setting agentVersion

* fix: debug log instead of ignore peer not found for setting agentVersion

* fix: remove NotFound check and only debug log error setting agentVersion

Co-authored-by: Nico Flaig <[email protected]>

---------

Co-authored-by: Nico Flaig <[email protected]>
  • Loading branch information
matthewkeil and nflaig authored Feb 1, 2024
1 parent 8e0078b commit 6b732b0
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 @@ -620,7 +620,7 @@ export class PeerManager {
},
{retries: 3, retryDelay: 1000}
).catch((err) => {
this.logger.error("Error setting agentVersion for the peer", {peerId: peerData.peerId.toString()}, err);
this.logger.debug("Error setting agentVersion for the peer", {peerId: peerData.peerId.toString()}, err);
});
};

Expand Down

0 comments on commit 6b732b0

Please sign in to comment.