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

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

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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.

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

              Created:
              Updated:
              Resolved: