@@ -134,7 +134,7 @@ export class NetworkMonitor implements Contracts.P2P.NetworkMonitor {
134134 max = Math . min ( peers . length , peerCount ) ;
135135 }
136136
137- this . logger . info ( `Checking ${ max } peers ` ) ;
137+ this . logger . info ( `Checking ${ Utils . pluralize ( "peer" , max , true ) } ` ) ;
138138 const peerErrors = { } ;
139139
140140 // we use Promise.race to cut loose in case some communicator.ping() does not resolve within the delay
@@ -172,11 +172,13 @@ export class NetworkMonitor implements Contracts.P2P.NetworkMonitor {
172172
173173 for ( const key of Object . keys ( peerErrors ) ) {
174174 const peerCount = peerErrors [ key ] . length ;
175- this . logger . debug ( `Removed ${ peerCount } ${ Utils . pluralize ( "peer" , peerCount ) } because of "${ key } "` ) ;
175+ this . logger . debug ( `Removed ${ Utils . pluralize ( "peer" , peerCount , true ) } because of "${ key } "` ) ;
176176 }
177177
178178 if ( this . initializing ) {
179- this . logger . info ( `${ max - unresponsivePeers } of ${ max } peers on the network are responsive` ) ;
179+ this . logger . info (
180+ `${ max - unresponsivePeers } of ${ Utils . pluralize ( "peer" , max , true ) } on the network are responsive` ,
181+ ) ;
180182 this . logger . info ( `Median Network Height: ${ this . getNetworkHeight ( ) . toLocaleString ( ) } ` ) ;
181183 }
182184 }
@@ -263,7 +265,7 @@ export class NetworkMonitor implements Contracts.P2P.NetworkMonitor {
263265 }
264266
265267 public async refreshPeersAfterFork ( ) : Promise < void > {
266- this . logger . info ( `Refreshing ${ this . repository . getPeers ( ) . length } peers after fork.` ) ;
268+ this . logger . info ( `Refreshing ${ Utils . pluralize ( "peer" , this . repository . getPeers ( ) . length , true ) } after fork.` ) ;
267269
268270 await this . cleansePeers ( { forcePing : true } ) ;
269271 }
0 commit comments