[SERVER-70187] new TLS handshake log line disobeys --quiet Created: 03/Oct/22  Updated: 29/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 6.1.0-rc3
Fix Version/s: 6.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Eric Milkie Assignee: Jason Chan
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
related to SERVER-68548 mongo shell version 4.4.15 logging as... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Steps To Reproduce:

Start the shell with --quiet and connect via TLS:

/Users/milkie/bin/mongo mongodb://db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-5.us-east-1.aws.cloud-dev.10gen.cc:27298,db-dev-aarch64-6.us-east-1.aws.cloud-dev.10gen.cc:27298/ --tls --quiet --tlsCAFile docker/ca/ca-mongodb-signatory.pem
{"t":{"$date":"2022-10-03T19:55:43.657Z"},"s":"I",  "c":"NETWORK",  "id":6723803, "ctx":"js","msg":"Accepted TLS connection from peer","attr":{"peerSubjectName":"CN=db-dev-aarch64-4.us-east-1.aws.cloud-dev.10gen.cc","cipher":49200}}
MongoDB Enterprise mongos>

(expected behavior would be to just see the shell prompt on the first line with no log lines printed)

Sprint: Service Arch 2022-10-31, Service Arch 2022-11-14
Participants:
Case:

 Description   

in SERVER-67238, new log lines were added that disobey the --quiet flag in the shell, thus breaking existing internal scripts that parse shell output.



 Comments   
Comment by Githook User [ 31/Oct/22 ]

Author:

{'name': 'Jason Chan', 'email': 'jason.chan@mongodb.com', 'username': 'jasonjhchan'}

Message: SERVER-70187 Suppress TLS handshake log line when --quiet enabled
Branch: master
https://github.com/mongodb/mongo/commit/54aa1224e35847da94648f1e9f520af6c1606b99

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