Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-460

Show server startup warnings just like mongo shell does

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.7.7
    • Affects Version/s: 0.5.2
    • Component/s: UI / UX
    • None
    • 2
    • Not Needed
    • Iteration Star Apple

      Problem Description

      Users needs to be given warnings that their server is configfured non-optionamally by surfacing warnings that are in mongod server logs in the shell when first started, like the Mongo Shell does

      Steps to Reproduce

      Start an non-optimal mongod server on local laptop and then run Mongo Shell - notice warnings, then run Mongosh and notice no warnigns

      Expected Results

      Mongo Shell on startup shows things like:

      MongoDB shell version v4.4.1
      connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gssapiServiceName=mongodb
      {{Implicit session: session { "id" : UUID("94fc2fd9-527b-4868-8c6d-2fac8e69b54e") }}}
      MongoDB server version: 4.4.1
      ---
      {{The server generated these startup warnings when booting: }}
      {{ 2020-11-23T10:48:35.152+00:00: ***** SERVER RESTARTED *****}}
      {{ 2020-11-23T10:48:35.492+00:00: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine. See http://dochub.mongodb.org/core/prodnotes-filesystem}}
      {{ 2020-11-23T10:48:36.391+00:00: Access control is not enabled for the database. Read and write access to data and configuration is unrestricted}}
      ---
      MongoDB Enterprise >

      Actual Results

      Nothing shown

      Additional Notes

            Assignee:
            michael.rose@mongodb.com Michael Rose (Inactive)
            Reporter:
            paul.done@mongodb.com Paul Done
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: