summaryrefslogtreecommitdiff
path: root/src/mongo/db/matcher/schema/json_schema_parser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/matcher/schema/json_schema_parser.cpp')
-rw-r--r--src/mongo/db/matcher/schema/json_schema_parser.cpp3
1 files changed, 2 insertions, 1 deletions
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}",