summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/query_planner_test_lib.cpp
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2020-02-20 16:05:48 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-21 20:12:44 +0000
commit0f7625b5cdbc24ed0fce1e168059118cb025d869 (patch)
tree3ea90b71ed2510e220140626b351f6e998d2d8b7 /src/mongo/db/query/query_planner_test_lib.cpp
parent3463ea25afcbf2c07b96f043904961b5c0f04474 (diff)
downloadmongo-0f7625b5cdbc24ed0fce1e168059118cb025d869.tar.gz
SERVER-45567 removing util/log.h where I can
o converting some log lines that were missed o fixing some missing includes create mode 100644 src/mongo/transport/ismaster_metrics.cpp
Diffstat (limited to 'src/mongo/db/query/query_planner_test_lib.cpp')
-rw-r--r--src/mongo/db/query/query_planner_test_lib.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/query/query_planner_test_lib.cpp b/src/mongo/db/query/query_planner_test_lib.cpp
index 4643d3c1516..dc1ee631607 100644
--- a/src/mongo/db/query/query_planner_test_lib.cpp
+++ b/src/mongo/db/query/query_planner_test_lib.cpp
@@ -47,9 +47,9 @@
#include "mongo/db/query/projection_parser.h"
#include "mongo/db/query/query_planner.h"
#include "mongo/db/query/query_solution.h"
+#include "mongo/logv2/log.h"
#include "mongo/unittest/unittest.h"
#include "mongo/util/assert_util.h"
-#include "mongo/util/log.h"
namespace {
@@ -138,7 +138,9 @@ bool bsonObjFieldsAreInSet(BSONObj obj, const std::set<std::string>& allowedFiel
while (i.more()) {
BSONElement child = i.next();
if (!allowedFields.count(child.fieldName())) {
- error() << "Did not expect to find " << child.fieldName();
+ LOGV2_ERROR(23932,
+ "Did not expect to find {child_fieldName}",
+ "child_fieldName"_attr = child.fieldName());
return false;
}
}