Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-564

mongodump should be more quiet

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 1.3.2
    • Fix Version/s: 1.5.1
    • Component/s: Tools
    • Labels:
      None
    • Environment:
      all?

      Description

      mongodump currently outputs a lot of things to stdout, which can be easily redirected when used in scripts.

      The message "connected to: 127.0.0.1" is sent to stderr, which doesn't really make sense, because it's not an error.

      I don't believe anything other than errors should be sent to stderr, especially from a tool that's supposed to be used mostly in automated environments.
      This would cause sysadmins to:

      1. Send everything to /dev/null, which would cause them to not know if anything breaks
      2. Write output handling scripts to inspect the stderr output, which is an inconvenience

      As far as I understand now, those messages are common to all the tools, and something might break if this gets changed.
      A possible workaround would be to provide a `--quiet` switch, which would not output such messages.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              eliot Eliot Horowitz (Inactive)
              Reporter:
              dabreaka Slavi Pantaleev
              Participants:
              Votes:
              3 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: