diff options
author | Amirsaman Memaripour <amirsaman.memaripour@mongodb.com> | 2020-03-24 17:41:29 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-27 04:45:53 +0000 |
commit | 019afd89c77629a3cabf93803314dd77f451276b (patch) | |
tree | 216608c9dc19c2d31707fd99153fae1f64040feb /src/mongo/db/mirror_maestro.cpp | |
parent | 0ebbedb45382c922d4873c2689d67fd80a735e5c (diff) | |
download | mongo-019afd89c77629a3cabf93803314dd77f451276b.tar.gz |
SERVER-47077 Clean up log lines in 'mongo/db'
Cleaning up log lines to adhere to the LOGV2 style guide.
Diffstat (limited to 'src/mongo/db/mirror_maestro.cpp')
-rw-r--r-- | src/mongo/db/mirror_maestro.cpp | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/src/mongo/db/mirror_maestro.cpp b/src/mongo/db/mirror_maestro.cpp index b7018659edf..3471820ed75 100644 --- a/src/mongo/db/mirror_maestro.cpp +++ b/src/mongo/db/mirror_maestro.cpp @@ -310,11 +310,8 @@ void MirrorMaestroImpl::_mirror(std::vector<HostAndPort> hosts, invariant(args.response.isOK()); gMirroredReadsSection.resolved.fetchAndAdd(1); - LOGV2_DEBUG(31457, - 4, - "Received response from {host}, response: {response}", - "host"_attr = host, - "response"_attr = args.response); + LOGV2_DEBUG( + 31457, 4, "Response received", "host"_attr = host, "response"_attr = args.response); }; auto newRequest = executor::RemoteCommandRequest( @@ -324,11 +321,7 @@ void MirrorMaestroImpl::_mirror(std::vector<HostAndPort> hosts, newRequest.fireAndForgetMode = executor::RemoteCommandRequest::FireAndForgetMode::kOn; } - LOGV2_DEBUG(31455, - 4, - "Mirroring to {host}, request: {request}", - "host"_attr = host, - "request"_attr = newRequest); + LOGV2_DEBUG(31455, 4, "About to mirror", "host"_attr = host, "request"_attr = newRequest); auto status = _executor->scheduleRemoteCommand(newRequest, std::move(mirrorResponseCallback)) @@ -339,7 +332,7 @@ void MirrorMaestroImpl::_mirror(std::vector<HostAndPort> hosts, } } catch (const DBException& e) { // TODO SERVER-44570 Invariant this only in testing - LOGV2_DEBUG(31456, 2, "Failed to mirror read command due to an error", "error"_attr = e); + LOGV2_DEBUG(31456, 2, "Mirroring failed", "reason"_attr = e); } void MirrorMaestroImpl::init(ServiceContext* serviceContext) noexcept { @@ -357,8 +350,7 @@ void MirrorMaestroImpl::init(ServiceContext* serviceContext) noexcept { return; } break; case Liveness::kShutdown: { - LOGV2_DEBUG( - 31453, 2, "MirrorMaestro cannot initialize as it has already been shutdown"); + LOGV2_DEBUG(31453, 2, "Cannot initialize an already shutdown MirrorMaestro"); return; } break; }; |