summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorTess Avitabile <tess.avitabile@mongodb.com>2020-02-26 15:39:55 +0000
committerevergreen <evergreen@mongodb.com>2020-02-26 15:39:55 +0000
commitce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271 (patch)
treeab403b1b448488a2e9881551fdae0eae4ad157da /src/mongo/tools
parentdbc00195a18a3aecbcb7b254c3de2056fe25aa24 (diff)
downloadmongo-ce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271.tar.gz
SERVER-46074 Improve log attributes for repl directory and bridge.cpp
Diffstat (limited to 'src/mongo/tools')
-rw-r--r--src/mongo/tools/bridge.cpp29
1 files changed, 14 insertions, 15 deletions
diff --git a/src/mongo/tools/bridge.cpp b/src/mongo/tools/bridge.cpp
index 3e612336f9a..b82c8f2338a 100644
--- a/src/mongo/tools/bridge.cpp
+++ b/src/mongo/tools/bridge.cpp
@@ -282,10 +282,10 @@ DbResponse ServiceEntryPointBridge::handleRequest(OperationContext* opCtx, const
LOGV2_DEBUG(22917,
1,
- "Received \"{cmdRequest_getCommandName}\" command with arguments "
- "{cmdRequest_body} from {dest}",
- "cmdRequest_getCommandName"_attr = cmdRequest->getCommandName(),
- "cmdRequest_body"_attr = cmdRequest->body,
+ "Received \"{commandName}\" command with arguments "
+ "{arguments} from {dest}",
+ "commandName"_attr = cmdRequest->getCommandName(),
+ "arguments"_attr = cmdRequest->body,
"dest"_attr = dest);
}
@@ -313,9 +313,9 @@ DbResponse ServiceEntryPointBridge::handleRequest(OperationContext* opCtx, const
// Close the connection to 'dest'.
case HostSettings::State::kHangUp:
LOGV2(22918,
- "Rejecting connection from {dest}, end connection {source_remote}",
+ "Rejecting connection from {dest}, end connection {source}",
"dest"_attr = dest,
- "source_remote"_attr = source->remote().toString());
+ "source"_attr = source->remote().toString());
source->end();
return {Message()};
// Forward the message to 'dest' with probability '1 - hostSettings.loss'.
@@ -324,16 +324,15 @@ DbResponse ServiceEntryPointBridge::handleRequest(OperationContext* opCtx, const
std::string hostName = dest.toString();
if (cmdRequest) {
LOGV2(22919,
- "Discarding \"{cmdRequest_getCommandName}\" command with arguments "
- "{cmdRequest_body} from {hostName}",
- "cmdRequest_getCommandName"_attr = cmdRequest->getCommandName(),
- "cmdRequest_body"_attr = cmdRequest->body,
+ "Discarding \"{commandName}\" command with arguments "
+ "{arguments} from {hostName}",
+ "commandName"_attr = cmdRequest->getCommandName(),
+ "arguments"_attr = cmdRequest->body,
"hostName"_attr = hostName);
} else {
LOGV2(22920,
- "Discarding {networkOpToString_request_operation} from {hostName}",
- "networkOpToString_request_operation"_attr =
- networkOpToString(request.operation()),
+ "Discarding {operation} from {hostName}",
+ "operation"_attr = networkOpToString(request.operation()),
"hostName"_attr = hostName);
}
return {Message()};
@@ -368,9 +367,9 @@ DbResponse ServiceEntryPointBridge::handleRequest(OperationContext* opCtx, const
// connections from 'host', then do so now.
if (hostSettings.state == HostSettings::State::kHangUp) {
LOGV2(22921,
- "Closing connection from {dest}, end connection {source_remote}",
+ "Closing connection from {dest}, end connection {source}",
"dest"_attr = dest,
- "source_remote"_attr = source->remote());
+ "source"_attr = source->remote());
source->end();
return {Message()};
}