diff options
Diffstat (limited to 'src/mongo/watchdog/watchdog_test.cpp')
-rw-r--r-- | src/mongo/watchdog/watchdog_test.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/watchdog/watchdog_test.cpp b/src/mongo/watchdog/watchdog_test.cpp index bc8bac2cc7b..02795b57481 100644 --- a/src/mongo/watchdog/watchdog_test.cpp +++ b/src/mongo/watchdog/watchdog_test.cpp @@ -38,6 +38,7 @@ #include "mongo/db/client.h" #include "mongo/db/service_context.h" #include "mongo/db/service_context_test_fixture.h" +#include "mongo/logv2/log.h" #include "mongo/unittest/death_test.h" #include "mongo/unittest/temp_dir.h" #include "mongo/unittest/unittest.h" @@ -300,7 +301,7 @@ class WatchdogMonitorThreadTest : public ServiceContextTest {}; TEST_F(WatchdogMonitorThreadTest, Basic) { ManualResetEvent deathEvent; WatchdogDeathCallback deathCallback = [&deathEvent]() { - log() << "Death signalled"; + LOGV2(23431, "Death signalled"); deathEvent.set(); }; @@ -345,7 +346,7 @@ private: TEST_F(WatchdogMonitorThreadTest, SleepyHungCheck) { ManualResetEvent deathEvent; WatchdogDeathCallback deathCallback = [&deathEvent]() { - log() << "Death signalled"; + LOGV2(23432, "Death signalled"); deathEvent.set(); }; @@ -375,7 +376,7 @@ class WatchdogMonitorTest : public ServiceContextTest {}; TEST_F(WatchdogMonitorTest, SleepyHungCheck) { ManualResetEvent deathEvent; WatchdogDeathCallback deathCallback = [&deathEvent]() { - log() << "Death signalled"; + LOGV2(23433, "Death signalled"); deathEvent.set(); }; @@ -412,7 +413,7 @@ DEATH_TEST(WatchdogMonitorTest, Death, "") { TEST_F(WatchdogMonitorTest, PauseAndResume) { WatchdogDeathCallback deathCallback = []() { - log() << "Death signalled, it should not have been"; + LOGV2(23434, "Death signalled, it should not have been"); invariant(false); }; |