diff options
author | David Storch <david.storch@10gen.com> | 2019-03-20 17:18:56 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2019-03-22 16:23:15 -0400 |
commit | 60c0441f9ba3196eaabe38935333d17f1aff88f8 (patch) | |
tree | edf0c9d697406fa2830057699f81e233e076b0bd /src/mongo/db/matcher/schema/json_schema_parser.cpp | |
parent | 7863f89c67dc4fa50330e585b5a4310daa0f42dc (diff) | |
download | mongo-60c0441f9ba3196eaabe38935333d17f1aff88f8.tar.gz |
SERVER-40267 Clean up debug string generation for MatchExpression.
Diffstat (limited to 'src/mongo/db/matcher/schema/json_schema_parser.cpp')
-rw-r--r-- | src/mongo/db/matcher/schema/json_schema_parser.cpp | 3 |
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 2b35d8e34b5..f46196df71f 100644 --- a/src/mongo/db/matcher/schema/json_schema_parser.cpp +++ b/src/mongo/db/matcher/schema/json_schema_parser.cpp @@ -1583,7 +1583,8 @@ StatusWithMatchExpression JSONSchemaParser::parse(BSONObj schema, bool ignoreUnk try { auto translation = _parse(""_sd, schema, ignoreUnknownKeywords); if (shouldLog(logger::LogSeverity::Debug(5)) && translation.isOK()) { - LOG(5) << "Translated schema match expression: " << translation.getValue()->toString(); + LOG(5) << "Translated schema match expression: " + << translation.getValue()->debugString(); } return translation; } catch (const DBException& ex) { |