diff options
Diffstat (limited to 'src/mongo/db/commands.cpp')
-rw-r--r-- | src/mongo/db/commands.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands.cpp b/src/mongo/db/commands.cpp index 6b4c6f3664c..38b03a99523 100644 --- a/src/mongo/db/commands.cpp +++ b/src/mongo/db/commands.cpp @@ -27,7 +27,7 @@ * it in the license file. */ -#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kCommand +#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kCommand #include "mongo/platform/basic.h" @@ -68,7 +68,7 @@ namespace mongo { -using logger::LogComponent; +using logv2::LogComponent; namespace { @@ -753,7 +753,7 @@ void CommandInvocation::checkAuthorization(OperationContext* opCtx, } } catch (const DBException& e) { LOGV2_OPTIONS(20436, - {logComponentV1toV2(LogComponent::kAccessControl)}, + {LogComponent::kAccessControl}, "Checking authorization failed: {error}", "Checking authorization failed", "error"_attr = e.toStatus()); |