diff options
-rw-r--r-- | src/mongo/executor/network_interface_integration_fixture.cpp | 10 | ||||
-rw-r--r-- | src/mongo/executor/remote_command_response.cpp | 2 | ||||
-rw-r--r-- | src/mongo/executor/remote_command_response.h | 1 |
3 files changed, 7 insertions, 6 deletions
diff --git a/src/mongo/executor/network_interface_integration_fixture.cpp b/src/mongo/executor/network_interface_integration_fixture.cpp index 41ceaa29e39..77ea859440b 100644 --- a/src/mongo/executor/network_interface_integration_fixture.cpp +++ b/src/mongo/executor/network_interface_integration_fixture.cpp @@ -108,14 +108,14 @@ Future<RemoteCommandResponse> NetworkInterfaceIntegrationFixture::runCommand( RemoteCommandRequestOnAny rcroa{request}; return net().startCommand(cbHandle, rcroa).then([](TaskExecutor::ResponseOnAnyStatus roa) { - auto& res = RemoteCommandResponse(roa); + auto res = RemoteCommandResponse(roa); if (res.isOK()) { - LOGV2(48205, + LOGV2(4820500, "Got command result: {response}", "Got command result", "response"_attr = res.toString()); } else { - LOGV2(48205, "Command failed: {error}", "Command failed", "error"_attr = res.status); + LOGV2(4820501, "Command failed: {error}", "Command failed", "error"_attr = res.status); } return res; }); @@ -127,12 +127,12 @@ Future<RemoteCommandOnAnyResponse> NetworkInterfaceIntegrationFixture::runComman return net().startCommand(cbHandle, rcroa).then([](TaskExecutor::ResponseOnAnyStatus roa) { if (roa.isOK()) { - LOGV2(48205, + LOGV2(4820502, "Got command result: {response}", "Got command result", "response"_attr = roa.toString()); } else { - LOGV2(48205, "Command failed: {error}", "Command failed", "error"_attr = roa.status); + LOGV2(4820503, "Command failed: {error}", "Command failed", "error"_attr = roa.status); } return roa; }); diff --git a/src/mongo/executor/remote_command_response.cpp b/src/mongo/executor/remote_command_response.cpp index f0311b2ce4e..d069c0832dc 100644 --- a/src/mongo/executor/remote_command_response.cpp +++ b/src/mongo/executor/remote_command_response.cpp @@ -31,6 +31,8 @@ #include "mongo/executor/remote_command_response.h" +#include <fmt/format.h> + #include "mongo/bson/simple_bsonobj_comparator.h" #include "mongo/rpc/reply_interface.h" #include "mongo/util/str.h" diff --git a/src/mongo/executor/remote_command_response.h b/src/mongo/executor/remote_command_response.h index a49b3deb763..7842ebdfe14 100644 --- a/src/mongo/executor/remote_command_response.h +++ b/src/mongo/executor/remote_command_response.h @@ -30,7 +30,6 @@ #pragma once #include <boost/optional.hpp> -#include <fmt/format.h> #include <iosfwd> #include <memory> #include <string> |