summaryrefslogtreecommitdiff
path: root/src/mongo/watchdog
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-03-05 13:45:21 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-14 21:34:40 +0000
commit79a8c251b6aa40165893bf0026091559eb5c13c7 (patch)
tree8a0728952b9ef13ae8a72c8c2ed60a6cf0492833 /src/mongo/watchdog
parentbe3eeca3c9802293b4a18cfae2d28c6cd41dfa29 (diff)
downloadmongo-79a8c251b6aa40165893bf0026091559eb5c13c7.tar.gz
SERVER-46127 unit tests log to a kTest component
Diffstat (limited to 'src/mongo/watchdog')
-rw-r--r--src/mongo/watchdog/watchdog_mongod.cpp3
-rw-r--r--src/mongo/watchdog/watchdog_test.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/src/mongo/watchdog/watchdog_mongod.cpp b/src/mongo/watchdog/watchdog_mongod.cpp
index 5d47f72ec64..77c87b087b5 100644
--- a/src/mongo/watchdog/watchdog_mongod.cpp
+++ b/src/mongo/watchdog/watchdog_mongod.cpp
@@ -27,7 +27,7 @@
* it in the license file.
*/
-#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
#include "mongo/platform/basic.h"
@@ -44,7 +44,6 @@
#include "mongo/db/service_context.h"
#include "mongo/db/storage/storage_options.h"
#include "mongo/logv2/log.h"
-#include "mongo/unittest/unittest.h"
#include "mongo/util/clock_source.h"
#include "mongo/util/clock_source_mock.h"
#include "mongo/util/tick_source_mock.h"
diff --git a/src/mongo/watchdog/watchdog_test.cpp b/src/mongo/watchdog/watchdog_test.cpp
index 49cf6a35fa4..c6993c268cd 100644
--- a/src/mongo/watchdog/watchdog_test.cpp
+++ b/src/mongo/watchdog/watchdog_test.cpp
@@ -27,7 +27,7 @@
* it in the license file.
*/
-#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kTest
#include "mongo/platform/basic.h"