diff options
author | Andrew Shuvalov <andrew.shuvalov@mongodb.com> | 2021-06-28 15:19:00 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-06-29 14:18:20 +0000 |
commit | 3d9544e082babdb3d2cc60fa5cbb29c2e1ed1504 (patch) | |
tree | 7039cf8b26a44b22938c1234fa079effd67b683e | |
parent | 5dbf53cee78762abf139fe837caa896b019d2c44 (diff) | |
download | mongo-3d9544e082babdb3d2cc60fa5cbb29c2e1ed1504.tar.gz |
SERVER-58118: reduce verbosity in RSM logging
-rw-r--r-- | src/mongo/client/replica_set_monitor.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mongo/client/replica_set_monitor.cpp b/src/mongo/client/replica_set_monitor.cpp index fc5b8bbaed3..0894deb843f 100644 --- a/src/mongo/client/replica_set_monitor.cpp +++ b/src/mongo/client/replica_set_monitor.cpp @@ -1053,13 +1053,12 @@ void Node::update(const IsMasterReply& reply, bool verbose) { invariant(host == reply.host); invariant(reply.ok); - verbose |= isMaster != reply.isMaster || opTime != reply.opTime || - lastWriteDate != reply.lastWriteDate; + verbose |= isMaster != reply.isMaster; if (verbose) { - log() << "Updating host " << host << " state based on ismaster reply from ReplicaSet " - << reply.setName << ". Self is primary: " << reply.isMaster - << ", primary is: " << reply.primary << ", election ID: " << reply.electionId - << ", ReplicaSet version: " << reply.configVersion; + LOG(1) << "Updating host " << host << " state based on ismaster reply from ReplicaSet " + << reply.setName << ". Self is primary: " << reply.isMaster + << ", primary is: " << reply.primary << ", election ID: " << reply.electionId + << ", ReplicaSet version: " << reply.configVersion; } else { LOG(3) << "Refreshing host " << host << " based on ismaster reply: " << reply.raw; } |