[SERVER-6778] printStackTrace does not work when running as a Windows Service Created: 16/Aug/12  Updated: 11/Jul/16  Resolved: 17/Aug/12

Status: Closed
Project: Core Server
Component/s: Diagnostics, Logging
Affects Version/s: 2.2.0-rc1
Fix Version/s: 2.2.0-rc2, 2.3.0

Type: Bug Priority: Major - P3
Reporter: Tad Marshall Assignee: Tad Marshall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongod.exe or mongos.exe running as a Windows Service


Issue Links:
Related
related to SERVER-8159 Write backtrace error to "log()" for ... Closed
is related to SERVER-6777 Eliminate all direct use of cout/stdo... Closed
Operating System: Windows
Participants:

 Description   

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.



 Comments   
Comment by auto [ 21/Aug/12 ]

Author:

{u'date': u'2012-08-17T07:42:21-07:00', u'email': u'tad@10gen.com', u'name': u'Tad Marshall'}

Message: SERVER-6778 use log() instead of cout for Windows stack trace
Branch: v2.2
https://github.com/mongodb/mongo/commit/cbdd95429bcf28fdf887b8f94e709d418d513c48

Comment by Tad Marshall [ 17/Aug/12 ]

Pushed to master, not yet to 2.2.0-rc2.

Comment by auto [ 17/Aug/12 ]

Author:

{u'date': u'2012-08-17T07:42:21-07:00', u'name': u'Tad Marshall', u'email': u'tad@10gen.com'}

Message: SERVER-6778 use log() instead of cout for Windows stack trace
Branch: master
https://github.com/mongodb/mongo/commit/c50c2f57444f524feebf14cecbddd3ed5fe45287

Generated at Thu Feb 08 03:12:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.