diff options
Diffstat (limited to 'src/mongo/db/ftdc/controller.cpp')
-rw-r--r-- | src/mongo/db/ftdc/controller.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/mongo/db/ftdc/controller.cpp b/src/mongo/db/ftdc/controller.cpp index 937fe0dbc7d..47acae27edf 100644 --- a/src/mongo/db/ftdc/controller.cpp +++ b/src/mongo/db/ftdc/controller.cpp @@ -39,6 +39,7 @@ #include "mongo/db/ftdc/collector.h" #include "mongo/db/ftdc/util.h" #include "mongo/db/jsobj.h" +#include "mongo/logv2/log.h" #include "mongo/platform/mutex.h" #include "mongo/stdx/condition_variable.h" #include "mongo/stdx/thread.h" @@ -137,8 +138,9 @@ BSONObj FTDCController::getMostRecentPeriodicDocument() { } void FTDCController::start() { - log() << "Initializing full-time diagnostic data capture with directory '" - << _path.generic_string() << "'"; + LOGV2(20625, + "Initializing full-time diagnostic data capture with directory '{path_generic_string}'", + "path_generic_string"_attr = _path.generic_string()); // Start the thread _thread = stdx::thread([this] { doLoop(); }); @@ -152,7 +154,7 @@ void FTDCController::start() { } void FTDCController::stop() { - log() << "Shutting down full-time diagnostic data capture"; + LOGV2(20626, "Shutting down full-time diagnostic data capture"); { stdx::lock_guard<Latch> lock(_mutex); @@ -180,7 +182,9 @@ void FTDCController::stop() { if (_mgr) { auto s = _mgr->close(); if (!s.isOK()) { - log() << "Failed to close full-time diagnostic data capture file manager: " << s; + LOGV2(20627, + "Failed to close full-time diagnostic data capture file manager: {s}", + "s"_attr = s); } } } |