From fad9de4ece9f5399acc804f206e40621930be5af Mon Sep 17 00:00:00 2001 From: Billy Donahue Date: Tue, 16 Feb 2021 01:15:53 -0500 Subject: SERVER-54596 remove 1-arg shouldLog function (an ODR violation) --- src/mongo/db/matcher/schema/json_schema_parser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/matcher/schema/json_schema_parser.cpp') diff --git a/src/mongo/db/matcher/schema/json_schema_parser.cpp b/src/mongo/db/matcher/schema/json_schema_parser.cpp index c972c05c602..df73cced7a7 100644 --- a/src/mongo/db/matcher/schema/json_schema_parser.cpp +++ b/src/mongo/db/matcher/schema/json_schema_parser.cpp @@ -1870,7 +1870,8 @@ StatusWithMatchExpression JSONSchemaParser::parse( "schema"_attr = schema.jsonString(JsonStringFormat::LegacyStrict)); try { auto translation = _parse(expCtx, ""_sd, schema, allowedFeatures, ignoreUnknownKeywords); - if (shouldLog(logv2::LogSeverity::Debug(5)) && translation.isOK()) { + if (shouldLog(MONGO_LOGV2_DEFAULT_COMPONENT, logv2::LogSeverity::Debug(5)) && + translation.isOK()) { LOGV2_DEBUG(20729, 5, "Translated schema match expression: {expression}", -- cgit v1.2.1