diff options
author | Reo Kimura <reo.kimura@mongodb.com> | 2020-07-07 20:44:57 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-07-09 17:14:19 +0000 |
commit | 2863db2f5418e7a204f0d35993f083f6b59639bc (patch) | |
tree | 8c37766ca525ab3ad4e985b92bcd7185ea288765 | |
parent | 4975a3041ada1fdf8d8c561c7d30eddaac677557 (diff) | |
download | mongo-2863db2f5418e7a204f0d35993f083f6b59639bc.tar.gz |
SERVER-48205 fixed log messages
-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> |