Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1639

Using --quiet in import/export tools suppresses all error messages

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      Currently, import/export tools (mongoimport, mongoexport, mongodump, and mongorestore) called with the --quiet option also suppresses all error messages. For example:

      $ mongoimport -d test -c test --host <unreachable host> test.json
      2017-03-30T11:00:46.287+1100	Failed: error connecting to db server: no reachable servers
       
      $ mongoimport -d test -c test --host <unreachable host> --quiet test.json
      (no error message printed to the console)
      

      As a result, if a user runs the import/export tools from the console, it could fail silently without notifying the user.

      Attachments

        Issue Links

          Activity

            People

              gabriel.russell@mongodb.com Gabriel Russell (Inactive)
              kevin.adistambha@mongodb.com Kevin Adistambha
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: