[SERVER-54719] printStackTrace missing a terminating newline Created: 23/Feb/21  Updated: 29/Oct/23  Resolved: 01/Mar/21

Status: Closed
Project: Core Server
Component/s: Internal Code
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: Billy Donahue Assignee: Billy Donahue
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Service Arch 2021-03-08
Participants:

 Description   

in the "humanReadable" segment of the backtrace dump,
and in the case that it was given a sink (not writing to LOGV2),
we emit frames like this, but there's no terminating newline.

*sink << fmt::format("\n Frame: {}", tojson(frame, ExtendedRelaxedV2_0_0));

Need a newline. This section of the output is specified to emit lines.
Without a newline, it's not a line. Trivial fix.



 Comments   
Comment by Githook User [ 01/Mar/21 ]

Author:

{'name': 'Billy Donahue', 'email': 'billy.donahue@mongodb.com', 'username': 'BillyDonahue'}

Message: SERVER-54719 printStackTrace missing a terminating newline
Branch: master
https://github.com/mongodb/mongo/commit/efe229ca2f1f68dc48974ef8c9c3f223047b88ac

Generated at Thu Feb 08 05:34:18 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.