diff options
Diffstat (limited to 'src/mongo/util/background.cpp')
-rw-r--r-- | src/mongo/util/background.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/util/background.cpp b/src/mongo/util/background.cpp index 1cc2c497c4c..d906db47e0a 100644 --- a/src/mongo/util/background.cpp +++ b/src/mongo/util/background.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" @@ -356,7 +356,7 @@ void PeriodicTaskRunner::_runTask(PeriodicTask* const task) { const auto duration = timer.elapsed(); LOGV2_DEBUG(23099, - logSeverityV1toV2(duration <= kMinLog ? 3 : 0).toInt(), + duration <= kMinLog ? 3 : 0, "Task: {taskName} took: {duration}", "Task finished", "taskName"_attr = taskName, |