[SERVER-8520] Startup warnings should be suppressed for non-interactive shell sessions Created: 12/Feb/13  Updated: 11/Jul/16  Resolved: 25/Feb/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.3.2, 2.4.0-rc0
Fix Version/s: 2.4.0-rc2

Type: Task Priority: Major - P3
Reporter: Stennie Steneker (Inactive) Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Participants:

 Description   

With SERVER-7740, startupWarnings are always displayed on startup. These should be suppressed for non-interactive shell sessions or with the --quiet parameter.

The starting warnings output is undesirable for scripting interaction.

For example:

mongo --quiet <<< "show dbs" > ./dbs.log

$ cat dbs.log
Server has startup warnings: 
Tue Feb 12 11:32:59.378 [initandlisten] 
Tue Feb 12 11:32:59.378 [initandlisten] ** WARNING: soft rlimits too low. rlimits set to 512 processes, 2560 files. Number of processes should be at least 1280 : 0.5 times number of files.
Tue Feb 12 11:32:59.552 [initandlisten] 
admin   0.203125GB
config  0.203125GB
...



 Comments   
Comment by auto [ 25/Feb/13 ]

Author:

{u'date': u'2013-02-25T20:12:57Z', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-8520 Do not show startupWarnings at shell startup if --quiet

Suppress automatic display of server's startupWarnings when starting
the shell if --quiet has been specified on the command line or if
input has been redirected.
Branch: master
https://github.com/mongodb/mongo/commit/b30db2399313a1043f419f9581a5688aa68f5e32

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