-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.4.8
-
Component/s: Logging
-
Labels:None
-
ALL
-
In the cases where long log lines are truncated, this can break UTF-8 characters.
For example, the following update (with text from Wikipedia):
db.test.update( {}, { $set : { description : "Anupam Roy is a Bengali lyricist, composer, singer from Kolkata, West Bengal, India. He is best known for his song Amake amar moto thakte dao (আমাকে আমার মত থাকতে দাও), which appeared on the soundtrack to the 2010 film Autograph"}})
Will appear as:
Wed Nov 27 11:03:02.373 [conn2] update test.test update: { $set: { LikeDescription: "Anupam Roy is a Bengali lyricist, composer, singer from Kolkata, West Bengal, India. He is best known for his song Amake amar moto thakte dao (আম�..." } } nscanned:0 nupdated:0 keyUpdates:0 locks(micros) w:52 0ms
in the log (where the final characters before the ellipsis are "আম�...")
This breaks the final UTF-8 character, as it has been truncated part way through the sequence.