From 019afd89c77629a3cabf93803314dd77f451276b Mon Sep 17 00:00:00 2001 From: Amirsaman Memaripour Date: Tue, 24 Mar 2020 17:41:29 -0400 Subject: SERVER-47077 Clean up log lines in 'mongo/db' Cleaning up log lines to adhere to the LOGV2 style guide. --- src/mongo/db/operation_context.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/mongo/db/operation_context.cpp') diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp index a0bee37b49b..3553a4f0f64 100644 --- a/src/mongo/db/operation_context.cpp +++ b/src/mongo/db/operation_context.cpp @@ -230,9 +230,7 @@ Status OperationContext::checkForInterruptNoAssert() noexcept { checkForInterruptFail.executeIf( [&](auto&&) { - LOGV2(20882, - "set pending kill on op {getOpID}, for checkForInterruptFail", - "getOpID"_attr = getOpID()); + LOGV2(20882, "Marking operation as killed for failpoint", "opId"_attr = getOpID()); markKilled(); }, [&](auto&& data) { return opShouldFail(getClient(), data); }); @@ -333,7 +331,7 @@ void OperationContext::markKilled(ErrorCodes::Error killCode) { invariant(!ErrorExtraInfo::parserFor(killCode)); if (killCode == ErrorCodes::ClientDisconnect) { - LOGV2(20883, "operation was interrupted because a client disconnected"); + LOGV2(20883, "Interrupted operation as its client disconnected", "opId"_attr = getOpID()); } if (auto status = ErrorCodes::OK; _killCode.compareAndSwap(&status, killCode)) { -- cgit v1.2.1