diff options
Diffstat (limited to 'src/mongo/s/commands/cluster_drop_indexes_cmd.cpp')
-rw-r--r-- | src/mongo/s/commands/cluster_drop_indexes_cmd.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp b/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp index 2b45943c3b8..55519ddda48 100644 --- a/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp +++ b/src/mongo/s/commands/cluster_drop_indexes_cmd.cpp @@ -32,6 +32,7 @@ #include "mongo/platform/basic.h" #include "mongo/db/commands.h" +#include "mongo/logv2/log.h" #include "mongo/s/cluster_commands_helpers.h" #include "mongo/s/grid.h" #include "mongo/util/log.h" @@ -69,7 +70,11 @@ public: std::string& errmsg, BSONObjBuilder& output) override { const NamespaceString nss(CommandHelpers::parseNsCollectionRequired(dbName, cmdObj)); - LOG(1) << "dropIndexes: " << nss << " cmd:" << redact(cmdObj); + LOGV2_DEBUG(22751, + 1, + "dropIndexes: {nss} cmd:{cmdObj}", + "nss"_attr = nss, + "cmdObj"_attr = redact(cmdObj)); // If the collection is sharded, we target only the primary shard and the shards that own // chunks for the collection. We ignore IndexNotFound errors, because the index may have |