A query like this:
db.foo.find({a: "\"i'm a quoted text\""})
is printed to the log file like so:
2014-12-21T15:43:14.894+1100 I QUERY [conn5] query test.foo query: { a: ""i'm a quoted text"" } planSummary: EOF ...
The inner quotes are not escaped. This makes parsing this string with json/javascript parsers impossible.
Instead, it should be printed like so:
2014-12-21T15:43:14.894+1100 I QUERY [conn5] query test.foo query: { a: "\"i'm a quoted text\"" } planSummary: EOF ...
- is related to
-
CDRIVER-2824 Client metadata is invalid JSON
- Closed
-
SERVER-16618 Log file should print extended json compliant syntax
- Backlog
- related to
-
SERVER-14739 Escape control characters in log messages
- Closed