diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2020-01-21 20:23:50 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2020-01-21 20:23:50 +0000 |
commit | b7846ff4dceec36e344b0f87c48783dffa2c6a32 (patch) | |
tree | 73068bb126bf19901e75bb972a941f17c9759754 /src/mongo/db/repl/vote_requester_test.cpp | |
parent | 41b3d7da7c763e304bc8f4056d0d31d200742e0b (diff) | |
download | mongo-b7846ff4dceec36e344b0f87c48783dffa2c6a32.tar.gz |
SERVER-45583 Unittests are using logv2.
Capture log system uses logv2, tests can handle converted log statements.
Diffstat (limited to 'src/mongo/db/repl/vote_requester_test.cpp')
-rw-r--r-- | src/mongo/db/repl/vote_requester_test.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/repl/vote_requester_test.cpp b/src/mongo/db/repl/vote_requester_test.cpp index dd8dedb0ccb..94ba342ca11 100644 --- a/src/mongo/db/repl/vote_requester_test.cpp +++ b/src/mongo/db/repl/vote_requester_test.cpp @@ -95,7 +95,7 @@ public: protected: int64_t countLogLinesContaining(const std::string& needle) { - const auto& msgs = getCapturedLogMessages(); + const auto& msgs = getCapturedTextFormatLogMessages(); return std::count_if( msgs.begin(), msgs.end(), [&](const auto& s) { return stringContains(s, needle); }); } |