summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/config/configsvr_remove_shard_command.cpp
diff options
context:
space:
mode:
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.cpp6
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;
}
}();