Skip to content

Commit

Permalink
Downgrade logs to trace
Browse files Browse the repository at this point in the history
  • Loading branch information
spalladino committed Dec 10, 2024
1 parent 2498ee7 commit a14808f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yarn-project/p2p/src/service/peer_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ export class PeerManager {
private shouldDialPeer(): boolean {
const connections = this.libP2PNode.getConnections().length;
if (connections >= this.config.maxPeerCount) {
this.logger.debug(
this.logger.trace(
`Not dialing peer due to max peer count of ${this.config.maxPeerCount} reached (${connections} current connections)`,
);
return false;
Expand All @@ -256,7 +256,7 @@ export class PeerManager {
// Remove the oldest peers
for (const key of this.cachedPeers.keys()) {
this.cachedPeers.delete(key);
this.logger.debug(`Pruning peer ${key} from cache`);
this.logger.trace(`Pruning peer ${key} from cache`);
peersToDelete--;
if (peersToDelete <= 0) {
break;
Expand Down

0 comments on commit a14808f

Please sign in to comment.