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

Tools share server code with different logging rules

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: Legacy C++ Implementation
    • Component/s: None
    • Labels:

      For tools, --quiet has ambiguous behavior, since tools cannot manage output logged by shared server code.

      This should not cause corruption, as far as we know, since all logged messages will be redirected to stderr in the case where data is written to stdout.

      > mongoexport --db test --collection test --dbpath /data/db --quiet --out output.json

      expect no output to stdout or stderr, instead see in stdout:

      dbexit: 2013-10-29T16:26:09.031-0400 [tools] shutdown: going to close listening sockets...
      2013-10-29T16:26:09.031-0400 [tools] shutdown: going to flush diaglog...
      2013-10-29T16:26:09.032-0400 [tools] shutdown: going to close sockets...
      2013-10-29T16:26:09.032-0400 [tools] shutdown: waiting for fs preallocator...
      2013-10-29T16:26:09.032-0400 [tools] shutdown: closing all files...
      2013-10-29T16:26:09.032-0400 [tools] closeAllFiles() finished
      2013-10-29T16:26:09.032-0400 [tools] shutdown: removing fs lock...

            Assignee:
            Unassigned Unassigned
            Reporter:
            ian@mongodb.com Ian Whalen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: