summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/jsobjtests.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r--src/mongo/dbtests/jsobjtests.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp
index 08ae278aa12..5124e1dee45 100644
--- a/src/mongo/dbtests/jsobjtests.cpp
+++ b/src/mongo/dbtests/jsobjtests.cpp
@@ -46,6 +46,7 @@
#include "mongo/db/jsobj.h"
#include "mongo/db/json.h"
#include "mongo/dbtests/dbtests.h"
+#include "mongo/logv2/log.h"
#include "mongo/platform/decimal128.h"
#include "mongo/util/allocator.h"
#include "mongo/util/embedded_builder.h"
@@ -163,7 +164,10 @@ FieldCompareResult compareDottedFieldNames(const string& l,
return LEFT_SUBFIELD;
}
- log() << "compareDottedFieldNames ERROR l: " << l << " r: " << r << " TOO MANY LOOPS" << endl;
+ LOGV2(22493,
+ "compareDottedFieldNames ERROR l: {l} r: {r} TOO MANY LOOPS",
+ "l"_attr = l,
+ "r"_attr = r);
verify(0);
return SAME; // will never get here
}