diff options
author | Dan Pasette <dan@mongodb.com> | 2016-08-31 12:27:17 -0400 |
---|---|---|
committer | Dan Pasette <dan@mongodb.com> | 2016-08-31 17:02:14 -0400 |
commit | f5c9d27ca6f0f4e1e2673c64b84b628ac29493ec (patch) | |
tree | 1d0863b27ca5fe5a4dd404dd6ad600241b137457 /src/mongo/db/s/migration_destination_manager_legacy_commands.cpp | |
parent | c268093f8fa2ec75683ebd34481465f791356320 (diff) | |
download | mongo-f5c9d27ca6f0f4e1e2673c64b84b628ac29493ec.tar.gz |
SERVER-24991 re-added causedBy logging construct
Diffstat (limited to 'src/mongo/db/s/migration_destination_manager_legacy_commands.cpp')
-rw-r--r-- | src/mongo/db/s/migration_destination_manager_legacy_commands.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp index 77d05403ef4..7f4636e03d2 100644 --- a/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp +++ b/src/mongo/db/s/migration_destination_manager_legacy_commands.cpp @@ -144,7 +144,7 @@ public: if (!status.isOK()) { errmsg = str::stream() << "cannot start recv'ing chunk " << "[" << redact(min) << "," << redact(max) << ")" - << redact(status); + << causedBy(redact(status)); warning() << errmsg; return false; @@ -160,9 +160,10 @@ public: auto statusWithFromShardConnectionString = ConnectionString::parse(cmdObj["from"].String()); if (!statusWithFromShardConnectionString.isOK()) { - errmsg = str::stream() << "cannot start recv'ing chunk " - << "[" << redact(min) << "," << redact(max) << ")" - << redact(statusWithFromShardConnectionString.getStatus()); + errmsg = str::stream() + << "cannot start recv'ing chunk " + << "[" << redact(min) << "," << redact(max) << ")" + << causedBy(redact(statusWithFromShardConnectionString.getStatus())); warning() << errmsg; return false; |