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

mongodump writes debug output to stderr instead of stdout

    • Type: Icon: Bug Bug
    • Resolution: Duplicate
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 3.0.11
    • Component/s: mongodump
    • Labels:
      None

      There have been earlier reports about this before (TOOLS-1484). Mongodump writes all kinds of debugging output to stderr, even if the command succeeded. Whilst I agree checking the exit code is the correct way to check for errors this behaviour makes it frustrating to send the actual error to another system as it is thousands of lines long without reason.

      The --quiet option is even worse as that hides the error altogether.

      Is it possible to write the normal log lines to stdout and just the errors to stderr? If that is not possible (I think not all platforms might support this) is it possible to either improve the --quiet option or add a new option that only suppresses non-error output?

            Assignee:
            Unassigned Unassigned
            Reporter:
            jeroenv Jeroen Vijfhuizen
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: