Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-8520

Startup warnings should be suppressed for non-interactive shell sessions

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.4.0-rc2
    • Affects Version/s: 2.3.2, 2.4.0-rc0
    • Component/s: Shell
    • None
    • Fully Compatible

      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
      ...
      

            Assignee:
            tad Tad Marshall
            Reporter:
            stephen.steneker@mongodb.com Stennie Steneker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: