diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2020-02-20 12:23:12 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-02-20 21:25:37 +0000 |
commit | c7f41ef10eefdd8abb5a671a0046f55af310705c (patch) | |
tree | af697623e733b153d3d190f8f1fc90fccb3f54c2 /src/mongo/db/commands/distinct.cpp | |
parent | 11bfeda8152267fa95bc63b4e93723845737217f (diff) | |
download | mongo-c7f41ef10eefdd8abb5a671a0046f55af310705c.tar.gz |
SERVER-45869 more automatically converted structured
Diffstat (limited to 'src/mongo/db/commands/distinct.cpp')
-rw-r--r-- | src/mongo/db/commands/distinct.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mongo/db/commands/distinct.cpp b/src/mongo/db/commands/distinct.cpp index d04cb68ebbc..0c2d046b9cb 100644 --- a/src/mongo/db/commands/distinct.cpp +++ b/src/mongo/db/commands/distinct.cpp @@ -57,6 +57,7 @@ #include "mongo/db/query/view_response_formatter.h" #include "mongo/db/s/collection_sharding_state.h" #include "mongo/db/views/resolved_view.h" +#include "mongo/logv2/log.h" #include "mongo/util/log.h" namespace mongo { @@ -271,10 +272,14 @@ public: // We should always have a valid status member object at this point. auto status = WorkingSetCommon::getMemberObjectStatus(obj); invariant(!status.isOK()); - warning() << "Plan executor error during distinct command: " - << redact(PlanExecutor::statestr(state)) << ", status: " << status - << ", stats: " - << redact(Explain::getWinningPlanStats(executor.getValue().get())); + LOGV2_WARNING( + 23797, + "Plan executor error during distinct command: {PlanExecutor_statestr_state}, " + "status: {status}, stats: {Explain_getWinningPlanStats_executor_getValue_get}", + "PlanExecutor_statestr_state"_attr = redact(PlanExecutor::statestr(state)), + "status"_attr = status, + "Explain_getWinningPlanStats_executor_getValue_get"_attr = + redact(Explain::getWinningPlanStats(executor.getValue().get()))); uassertStatusOK(status.withContext("Executor error during distinct command")); } |