Skip to content

Commit 3205ddd

Browse files
committed
remove log statements
1 parent 3c6cc7c commit 3205ddd

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/sdam/topology_description.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)