diff options
author | Tess Avitabile <tess.avitabile@mongodb.com> | 2020-02-26 15:39:55 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-02-26 15:39:55 +0000 |
commit | ce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271 (patch) | |
tree | ab403b1b448488a2e9881551fdae0eae4ad157da /src/mongo/db/repl/reporter.cpp | |
parent | dbc00195a18a3aecbcb7b254c3de2056fe25aa24 (diff) | |
download | mongo-ce4f6d6f6e0be8478e1f2f6f728dcc89f4b1e271.tar.gz |
SERVER-46074 Improve log attributes for repl directory and bridge.cpp
Diffstat (limited to 'src/mongo/db/repl/reporter.cpp')
-rw-r--r-- | src/mongo/db/repl/reporter.cpp | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/mongo/db/repl/reporter.cpp b/src/mongo/db/repl/reporter.cpp index 8b63bfbaad4..09df89d3827 100644 --- a/src/mongo/db/repl/reporter.cpp +++ b/src/mongo/db/repl/reporter.cpp @@ -215,11 +215,10 @@ StatusWith<BSONObj> Reporter::_prepareCommand() { // If there was an error in preparing the command, abort and return that error. if (!prepareResult.isOK()) { - LOGV2_DEBUG( - 21586, - 2, - "Reporter failed to prepare update command with status: {prepareResult_getStatus}", - "prepareResult_getStatus"_attr = prepareResult.getStatus()); + LOGV2_DEBUG(21586, + 2, + "Reporter failed to prepare update command with status: {status}", + "status"_attr = prepareResult.getStatus()); _status = prepareResult.getStatus(); return _status; } @@ -228,12 +227,11 @@ StatusWith<BSONObj> Reporter::_prepareCommand() { } void Reporter::_sendCommand_inlock(BSONObj commandRequest, Milliseconds netTimeout) { - LOGV2_DEBUG( - 21587, - 2, - "Reporter sending slave oplog progress to upstream updater {target}: {commandRequest}", - "target"_attr = _target, - "commandRequest"_attr = commandRequest); + LOGV2_DEBUG(21587, + 2, + "Reporter sending oplog progress to upstream updater {target}: {commandRequest}", + "target"_attr = _target, + "commandRequest"_attr = commandRequest); auto scheduleResult = _executor->scheduleRemoteCommand( executor::RemoteCommandRequest(_target, "admin", commandRequest, nullptr, netTimeout), |