summaryrefslogtreecommitdiff
path: root/src/mongo/db/sorter
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-02-13 11:49:46 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-13 18:16:35 +0000
commita84c09a19720b73cedb2e8ef7c5cfeedfa1c9761 (patch)
tree85ac46cd5f4ea6d5134560bf764fb9e6cf11fe4e /src/mongo/db/sorter
parent6df40e01f7b6899affc4536e7e73a35802cabf98 (diff)
downloadmongo-a84c09a19720b73cedb2e8ef7c5cfeedfa1c9761.tar.gz
SERVER-45869 automatically converted structured logging
Diffstat (limited to 'src/mongo/db/sorter')
-rw-r--r--src/mongo/db/sorter/sorter_test.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/sorter/sorter_test.cpp b/src/mongo/db/sorter/sorter_test.cpp
index e8c534db10e..ebfd7cf605e 100644
--- a/src/mongo/db/sorter/sorter_test.cpp
+++ b/src/mongo/db/sorter/sorter_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/sorter/sorter.h"
@@ -44,6 +46,8 @@
#include "mongo/unittest/unittest.h"
#include "mongo/util/str.h"
+#include "mongo/logv2/log.h"
+#include "mongo/util/log.h"
#include <memory>
namespace mongo {
@@ -204,8 +208,10 @@ void _assertIteratorsEquivalent(It1 it1, It2 it2, int line) {
it1->closeSource();
it2->closeSource();
} catch (...) {
- mongo::unittest::log() << "Failure from line " << line << " on iteration " << iteration
- << std::endl;
+ LOGV2(22047,
+ "Failure from line {line} on iteration {iteration}",
+ "line"_attr = line,
+ "iteration"_attr = iteration);
it1->closeSource();
it2->closeSource();
throw;