summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonobjbuilder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.cpp')
-rw-r--r--src/mongo/bson/bsonobjbuilder.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.cpp b/src/mongo/bson/bsonobjbuilder.cpp
index 13133acf5c8..6487c93f932 100644
--- a/src/mongo/bson/bsonobjbuilder.cpp
+++ b/src/mongo/bson/bsonobjbuilder.cpp
@@ -34,6 +34,7 @@
#include <boost/lexical_cast.hpp>
#include "mongo/bson/timestamp.h"
+#include "mongo/logv2/log.h"
#include "mongo/util/log.h"
namespace mongo {
@@ -105,7 +106,7 @@ BSONObjBuilder& BSONObjBuilder::appendMinForType(StringData fieldName, int t) {
appendCodeWScope(fieldName, "", BSONObj());
return *this;
};
- log() << "type not supported for appendMinElementForType: " << t;
+ LOGV2(20101, "type not supported for appendMinElementForType: {t}", "t"_attr = t);
uassert(10061, "type not supported for appendMinElementForType", false);
}
@@ -173,7 +174,7 @@ BSONObjBuilder& BSONObjBuilder::appendMaxForType(StringData fieldName, int t) {
appendMinForType(fieldName, MaxKey);
return *this;
}
- log() << "type not supported for appendMaxElementForType: " << t;
+ LOGV2(20102, "type not supported for appendMaxElementForType: {t}", "t"_attr = t);
uassert(14853, "type not supported for appendMaxElementForType", false);
}