From a84c09a19720b73cedb2e8ef7c5cfeedfa1c9761 Mon Sep 17 00:00:00 2001 From: Gabriel Russell Date: Thu, 13 Feb 2020 11:49:46 -0500 Subject: SERVER-45869 automatically converted structured logging --- src/mongo/db/free_mon/free_mon_controller.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/free_mon/free_mon_controller.cpp') diff --git a/src/mongo/db/free_mon/free_mon_controller.cpp b/src/mongo/db/free_mon/free_mon_controller.cpp index a9de7ca4c49..895a278a57b 100644 --- a/src/mongo/db/free_mon/free_mon_controller.cpp +++ b/src/mongo/db/free_mon/free_mon_controller.cpp @@ -35,6 +35,7 @@ #include "mongo/db/ftdc/collector.h" #include "mongo/logger/logstream_builder.h" +#include "mongo/logv2/log.h" #include "mongo/util/log.h" namespace mongo { @@ -167,7 +168,7 @@ void FreeMonController::start(RegistrationType registrationType, void FreeMonController::stop() { // Stop the agent - log() << "Shutting down free monitoring"; + LOGV2(20609, "Shutting down free monitoring"); { stdx::lock_guard lock(_mutex); @@ -198,7 +199,9 @@ void FreeMonController::turnCrankForTest(size_t countMessagesToIgnore) { invariant(_state == State::kStarted); } - log() << "Turning Crank: " << countMessagesToIgnore; + LOGV2(20610, + "Turning Crank: {countMessagesToIgnore}", + "countMessagesToIgnore"_attr = countMessagesToIgnore); _processor->turnCrankForTest(countMessagesToIgnore); } -- cgit v1.2.1