[SERVER-67788] Shell produces JSON output (when TLS is enabled) Created: 05/Jul/22  Updated: 20/Aug/23  Resolved: 30/Aug/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.4.15
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Tianon Gravi Assignee: Eric Sedor
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Participants:
Case:

 Description   

This is very similar to SERVER-46932, but new in 4.4.15, and only exhibits when TLS is enabled in the server.

Here's an example of the new message (which prints even with --quiet):

 

{"t":{"$date":"2022-07-05T17:20:33.332Z"},"s":"I",  "c":"NETWORK",  "id":5490002, "ctx":"thread1","msg":"Started a new thread for the timer service"}

Looking through the commit history, I think this was introduced by https://github.com/mongodb/mongo/commit/65134ea4e05c6c6d2647186782775ae0cdeb712e (which means it'll probably affect 6.0 also).

 



 Comments   
Comment by Eric Sedor [ 12/Aug/22 ]

Hi tianon,

The legacy mongo shell has been replaced with mongosh and isn't being actively improved at this point. Can you see if you have any similar trouble with mongosh --quiet?

Thanks!

Generated at Thu Feb 08 06:09:03 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.