[SERVER-38385] --quiet mongo shell option does not silence output when connecting to Replica Set Created: 04/Dec/18  Updated: 03/Jun/22  Resolved: 05/Dec/18

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

Type: Improvement Priority: Minor - P4
Reporter: Franz van Betteraey Assignee: Danny Hatcher (Inactive)
Resolution: Duplicate Votes: 0
Labels: mongo, shell
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux


Issue Links:
Duplicate
duplicates SERVER-27159 shell logs output of ReplicaSetMonito... Closed
Participants:

 Description   

When execution a mongo shell script with the --quite option like this

> mongo --nodb --quiet myScript.js

the connection output is hidden when using the following connection commands in the script

// connect to database in script via
{{ var conn = new Mongo("myHost:27017");}}
{{ var db = conn.getDB("myDb");}}
{{  }}
{{ Unfortunately the (enhanced) output is not hidden when connecting to a Replica Set via}}
{{  }}
{{ var conn = new Mongo("mongodb://myHost01:27017,myHost02:27017,myHost03:27017/myDb?replicaSet=myDb-rs);}}
{{ var db = conn.getDB("myDb");}}
{{ or }}
{{ var db = connect("mongodb://myHost01:27017,myHost02:27017,myHost03:27017/myDb?replicaSet=myDb-rs");}}
{{  }}
{{ I would have expected that all the output that is done via connecting to a Replica Set would be hidden too.}}



 Comments   
Comment by Danny Hatcher (Inactive) [ 05/Dec/18 ]

Hello Franz,

Thank you for your report. This issue is being tracked in SERVER-27159. Please follow that ticket for any updates as I will now close this as a duplicate.

Danny

Generated at Thu Feb 08 04:48:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.