File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed
Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -398,7 +398,6 @@ function updateRsFromPrimary(
398398 } else {
399399 // Stale primary
400400 // replace serverDescription with a default ServerDescription of type "Unknown"
401- console . log ( `marking newly discovered primary: ${ serverDescription . address } as stale` ) ;
402401 serverDescriptions . set (
403402 serverDescription . address ,
404403 new ServerDescription ( serverDescription . address , undefined , {
@@ -417,7 +416,6 @@ function updateRsFromPrimary(
417416 compareObjectId ( maxElectionId , electionId ) > 0
418417 ) {
419418 // this primary is stale, we must remove it
420- console . log ( `marking newly discovered primary: ${ serverDescription . address } as stale` ) ;
421419 serverDescriptions . set (
422420 serverDescription . address ,
423421 new ServerDescription ( serverDescription . address , undefined , {
@@ -443,9 +441,6 @@ function updateRsFromPrimary(
443441 // We've heard from the primary. Is it the same primary as before?
444442 for ( const [ address , server ] of serverDescriptions ) {
445443 if ( server . type === ServerType . RSPrimary && server . address !== serverDescription . address ) {
446- console . log (
447- `server.address: ${ server . address } ; serverDescription.address: ${ serverDescription . address } `
448- ) ;
449444 // Reset old primary's type to Unknown.
450445 serverDescriptions . set (
451446 address ,
You can’t perform that action at this time.
0 commit comments