summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-03-02 17:48:47 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-04-14 17:02:16 +0000
commitcdf9ea3b479bbffc1de900884ee10e29e7349bd2 (patch)
tree0da63f8345d2d0dc7e79b407da1726486fddbecb /src/mongo/db/pipeline
parent298652908ebcc41ba28b1d68a3c6a90486ccce98 (diff)
downloadmongo-cdf9ea3b479bbffc1de900884ee10e29e7349bd2.tar.gz
SERVER-46568 removing the unittestOutput domain
Diffstat (limited to 'src/mongo/db/pipeline')
-rw-r--r--src/mongo/db/pipeline/accumulator_test.cpp5
-rw-r--r--src/mongo/db/pipeline/expression_test.cpp5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/accumulator_test.cpp b/src/mongo/db/pipeline/accumulator_test.cpp
index 888887a2898..d3da839801f 100644
--- a/src/mongo/db/pipeline/accumulator_test.cpp
+++ b/src/mongo/db/pipeline/accumulator_test.cpp
@@ -27,6 +27,8 @@
* it in the license file.
*/
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include <memory>
@@ -38,6 +40,7 @@
#include "mongo/db/pipeline/expression_context_for_test.h"
#include "mongo/db/query/collation/collator_interface_mock.h"
#include "mongo/dbtests/dbtests.h"
+#include "mongo/logv2/log.h"
namespace AccumulatorTests {
@@ -93,7 +96,7 @@ static void assertExpectedResults(
ASSERT_EQUALS(op.second.getType(), result.getType());
}
} catch (...) {
- log() << "failed with arguments: " << Value(op.first);
+ LOGV2(24180, "failed", "argument"_attr = Value(op.first));
throw;
}
}
diff --git a/src/mongo/db/pipeline/expression_test.cpp b/src/mongo/db/pipeline/expression_test.cpp
index 522e2a750f4..f13bdfe6b7d 100644
--- a/src/mongo/db/pipeline/expression_test.cpp
+++ b/src/mongo/db/pipeline/expression_test.cpp
@@ -27,6 +27,8 @@
* it in the license file.
*/
+#define MONGO_LOGV2_DEFAULT_COMPONENT ::mongo::logv2::LogComponent::kDefault
+
#include "mongo/platform/basic.h"
#include "mongo/bson/bsonmisc.h"
@@ -41,6 +43,7 @@
#include "mongo/db/pipeline/expression_context_for_test.h"
#include "mongo/db/query/collation/collator_interface_mock.h"
#include "mongo/dbtests/dbtests.h"
+#include "mongo/logv2/log.h"
#include "mongo/unittest/unittest.h"
namespace ExpressionTests {
@@ -83,7 +86,7 @@ static void assertExpectedResults(
ASSERT_VALUE_EQ(op.second, result);
ASSERT_EQUALS(op.second.getType(), result.getType());
} catch (...) {
- log() << "failed with arguments: " << ImplicitValue::convertToValue(op.first);
+ LOGV2(24188, "failed", "argument"_attr = ImplicitValue::convertToValue(op.first));
throw;
}
}