diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-05-14 15:38:14 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-15 20:44:35 +0000 |
commit | 6b38c78843e7eb58dc344d88903727762d7d486d (patch) | |
tree | d08071ed14f728761293ec9a1ce37ccf8ac2191b /src/mongo/db/system_index.cpp | |
parent | 2c0306062f074fb35c0554e577401227a45ad811 (diff) | |
download | mongo-6b38c78843e7eb58dc344d88903727762d7d486d.tar.gz |
SERVER-48148 Cleanup of execution logs in db/
Diffstat (limited to 'src/mongo/db/system_index.cpp')
-rw-r--r-- | src/mongo/db/system_index.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/mongo/db/system_index.cpp b/src/mongo/db/system_index.cpp index 3802d0135e2..1df26d10abe 100644 --- a/src/mongo/db/system_index.cpp +++ b/src/mongo/db/system_index.cpp @@ -107,9 +107,11 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx, BSONObj indexSpec = fassert(40452, indexSpecStatus); LOGV2(22488, - "No authorization index detected on {ns} collection. Attempting to recover by " + "No authorization index detected on {namespace} collection. Attempting to recover by " "creating an index with spec: {indexSpec}", - "ns"_attr = ns, + "No authorization index detected. Attempting to recover by " + "creating an index", + logAttrs(ns), "indexSpec"_attr = indexSpec); auto indexConstraints = IndexBuildsManager::IndexConstraints::kEnforce; @@ -118,9 +120,10 @@ void generateSystemIndexForExistingCollection(OperationContext* opCtx, opCtx, collectionUUID, {indexSpec}, indexConstraints, fromMigrate); } catch (const DBException& e) { LOGV2_FATAL_CONTINUE(22490, - "Failed to regenerate index for {ns}. Exception: {e_what}", - "ns"_attr = ns, - "e_what"_attr = e.what()); + "Failed to regenerate index for {namespace}. Exception: {error}", + "Failed to regenerate index", + logAttrs(ns), + "error"_attr = e.what()); throw; } } |