diff options
author | Lamont Nelson <lamont.nelson@Lamonts-MBP.fios-router.home> | 2020-03-18 23:14:08 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-03-23 21:02:52 +0000 |
commit | 6495df6629097d1cd846056f60cc3b5570be8a10 (patch) | |
tree | 2b231807ff0392e210f0e382e5cf28152cba71f9 /src/mongo/db/s/config/configsvr_remove_shard_command.cpp | |
parent | 13f5c735c4fcd90d394917033cb161ee6ad05220 (diff) | |
download | mongo-6495df6629097d1cd846056f60cc3b5570be8a10.tar.gz |
SERVER-46799: update log lines for style guide
Diffstat (limited to 'src/mongo/db/s/config/configsvr_remove_shard_command.cpp')
-rw-r--r-- | src/mongo/db/s/config/configsvr_remove_shard_command.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/s/config/configsvr_remove_shard_command.cpp b/src/mongo/db/s/config/configsvr_remove_shard_command.cpp index 4c0dc80a658..0d3015f15f3 100644 --- a/src/mongo/db/s/config/configsvr_remove_shard_command.cpp +++ b/src/mongo/db/s/config/configsvr_remove_shard_command.cpp @@ -116,7 +116,11 @@ public: try { return shardingCatalogManager->removeShard(opCtx, shardId); } catch (const DBException& ex) { - LOGV2(21923, "Failed to remove shard due to {ex}", "ex"_attr = redact(ex)); + LOGV2(21923, + "Failed to remove shard {shardId} due to {error}", + "Failed to remove shard", + "shardId"_attr = shardId, + "error"_attr = redact(ex)); throw; } }(); |