printStackTrace does not work when running as a Windows Service

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 2.2.0-rc2, 2.3.0
    • Affects Version/s: 2.2.0-rc1
    • Component/s: Diagnostics, Logging
    • None
    • Environment:
      mongod.exe or mongos.exe running as a Windows Service
    • Windows
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The printStackTrace() routine sends its output to cout. Because of SERVER-6777, this means that no output from printStackTrace() will appear in log files when mongod.exe or mongos.exe is running as a Windows Service. Changing the code to output to log() instead of cout in Windows, at least when running as a service, would fix this.

            Assignee:
            Tad Marshall
            Reporter:
            Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: