...
BugZero found this defect 2763 days ago.
The work done in SERVER-27869 created a log output for each process analyzed in hang_analyzer.py. Log output are saved in a process specific file, i.e., debugger_mongod_1234.log. Any error message sent to stderr are missing from this log and need to be captured as well.
xgen-internal-githook commented on Fri, 28 Apr 2017 20:36:09 +0000: Author: {u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'} Message: SERVER-28349 Redirect stderr to stdout for process output logs generated by hang_analyzer (cherry picked from commit 7c14dc3bd539bd732f61d24a144f3f3800b8b9a8) Branch: v3.4 https://github.com/mongodb/mongo/commit/2c004a5453f535dd954fe682926f0e0a64c44a9d xgen-internal-githook commented on Mon, 3 Apr 2017 16:31:09 +0000: Author: {u'username': u'elouie99', u'name': u'Eddie Louie', u'email': u'eddie.louie@mongodb.com'} Message: SERVER-28349 Redirect stderr to stdout for process output logs generated by hang_analyzer Branch: master https://github.com/mongodb/mongo/commit/7c14dc3bd539bd732f61d24a144f3f3800b8b9a8 max.hirschhorn@10gen.com commented on Wed, 22 Mar 2017 23:46:57 +0000: It's probably sufficient to redirect the stderr of the process to stdout using subprocess.STDOUT rather than introducing a separate LoggerPipe for stderr.