Skip to content
This repository was archived by the owner on Oct 31, 2023. It is now read-only.

Commit 9c87e0d

Browse files
committed
SERVER-41406 Reduce log verbosity for CollectionCatalog
1 parent 51f76f5 commit 9c87e0d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/mongo/db/catalog/collection_catalog.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ std::vector<std::string> CollectionCatalog::getAllDbNames() const {
346346
void CollectionCatalog::registerCollection(CollectionUUID uuid, std::unique_ptr<Collection> coll) {
347347
stdx::lock_guard<stdx::mutex> lock(_catalogLock);
348348

349-
LOG(0) << "Registering collection " << coll->ns() << " with UUID " << uuid;
349+
LOG(1) << "Registering collection " << coll->ns() << " with UUID " << uuid;
350350

351351
auto ns = coll->ns();
352352
auto dbName = ns.db().toString();
@@ -378,7 +378,7 @@ std::unique_ptr<Collection> CollectionCatalog::deregisterCollection(CollectionUU
378378
auto dbName = ns.db().toString();
379379
auto dbIdPair = std::make_pair(dbName, uuid);
380380

381-
LOG(0) << "Deregistering collection " << ns << " with UUID " << uuid;
381+
LOG(1) << "Deregistering collection " << ns << " with UUID " << uuid;
382382

383383
// Make sure collection object exists.
384384
invariant(_collections.find(ns) != _collections.end());
@@ -413,7 +413,7 @@ void CollectionCatalog::deregisterAllCollections() {
413413
auto dbName = ns.db().toString();
414414
auto dbIdPair = std::make_pair(dbName, uuid);
415415

416-
LOG(0) << "Deregistering collection " << ns << " with UUID " << uuid;
416+
LOG(1) << "Deregistering collection " << ns << " with UUID " << uuid;
417417

418418
entry.second.reset();
419419
}

0 commit comments

Comments
 (0)