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

Ensure we don't print deprecation warnings or Node.js warnings in --quiet mode

    • 3
    • Developer Tools

      See MONGOSH-1893 for motivation – this is something that's a bit more narrowly scoped but also more actionable. We already disable Node.js warnings via process.removeAllListeners('warning'); for the compiled binary, and should be able to just always do that in quiet mode. For warnings originating from mongosh, we'll probably need to pass the quiet flag into the ShellInstanceState so that printDeprecationWarning can adjust its behavior accordingly.

            Assignee:
            Unassigned Unassigned
            Reporter:
            anna.henningsen@mongodb.com Anna Henningsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: