summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/mongo/db/s/cleanup_orphaned_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/s/cleanup_orphaned_cmd.cpp b/src/mongo/db/s/cleanup_orphaned_cmd.cpp
index f5e947fa959..6a9bc668ba7 100644
--- a/src/mongo/db/s/cleanup_orphaned_cmd.cpp
+++ b/src/mongo/db/s/cleanup_orphaned_cmd.cpp
@@ -92,8 +92,8 @@ CleanupResult cleanupOrphanedData(OperationContext* opCtx,
if (!startingFromKey.isEmpty()) {
if (!metadata->isValidKey(startingFromKey)) {
*errMsg = str::stream() << "could not cleanup orphaned data, start key "
- << startingFromKey << " does not match shard key pattern "
- << keyPattern;
+ << redact(startingFromKey)
+ << " does not match shard key pattern " << keyPattern;
log() << *errMsg;
return CleanupResult_Error;