summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/all_database_cloner_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/all_database_cloner_test.cpp')
-rw-r--r--src/mongo/db/repl/all_database_cloner_test.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/mongo/db/repl/all_database_cloner_test.cpp b/src/mongo/db/repl/all_database_cloner_test.cpp
index ffc72c8d2fa..bbbc8a66c67 100644
--- a/src/mongo/db/repl/all_database_cloner_test.cpp
+++ b/src/mongo/db/repl/all_database_cloner_test.cpp
@@ -27,6 +27,8 @@
* it in the license file.
*/
+#define MONGO_LOG_DEFAULT_COMPONENT ::mongo::logger::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/db/repl/all_database_cloner.h"
@@ -35,9 +37,11 @@
#include "mongo/db/repl/storage_interface_mock.h"
#include "mongo/db/service_context_test_fixture.h"
#include "mongo/dbtests/mock/mock_dbclient_connection.h"
+#include "mongo/logv2/log.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/clock_source_mock.h"
#include "mongo/util/concurrency/thread_pool.h"
+#include "mongo/util/log.h"
namespace mongo {
namespace repl {
@@ -114,7 +118,7 @@ TEST_F(AllDatabaseClonerTest, RetriesConnect) {
ASSERT_EQ(2, _sharedData->getTotalRetries(WithLock::withoutLock()));
// Bring the server up.
- unittest::log() << "Bringing mock server back up.";
+ LOGV2(21061, "Bringing mock server back up.");
_mockServer->reboot();
// Allow the cloner to finish.
@@ -229,7 +233,7 @@ TEST_F(AllDatabaseClonerTest, RetriesListDatabases) {
ASSERT_EQ(2, _sharedData->getTotalRetries(WithLock::withoutLock()));
// Bring the server up.
- unittest::log() << "Bringing mock server back up.";
+ LOGV2(21062, "Bringing mock server back up.");
_mockServer->reboot();
// Allow the cloner to finish.
@@ -277,7 +281,7 @@ TEST_F(AllDatabaseClonerTest, RetriesListDatabasesButRollBackIdChanges) {
_mockServer->setCommandReply("replSetGetRBID", fromjson("{ok:1, rbid:2}"));
// Bring the server up.
- unittest::log() << "Bringing mock server back up.";
+ LOGV2(21063, "Bringing mock server back up.");
_mockServer->reboot();
// Allow the cloner to finish.