<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:31:42 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-13429] Replace writes to cout/cerr or stdout/stderr in server with log operations</title>
                <link>https://jira.mongodb.org/browse/SERVER-13429</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Writes to these destinations do not end up in the logs when logging other than to stdout, and can interleave with the logs when logging to stdout.&lt;/p&gt;

&lt;p&gt;Removing references to cout, cerr, rawOut() are necessary steps in this process.&lt;/p&gt;</description>
                <environment></environment>
        <key id="128653">SERVER-13429</key>
            <summary>Replace writes to cout/cerr or stdout/stderr in server with log operations</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="schwerin@mongodb.com">Andy Schwerin</assignee>
                                    <reporter username="schwerin@mongodb.com">Andy Schwerin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Mar 2014 22:20:40 +0000</created>
                <updated>Mon, 11 Jul 2016 17:17:24 +0000</updated>
                            <resolved>Wed, 2 Apr 2014 00:07:03 +0000</resolved>
                                    <version>2.6.0-rc2</version>
                                    <fixVersion>2.6.0-rc3</fixVersion>
                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="531859" author="xgen-internal-githook" created="Wed, 2 Apr 2014 00:04:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Update exit_logging.js to also test mongos exit logging.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 9e041ccf433660008ed2ddb1c2ed58ba78ef5488)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c7a673410edd0c9ff6a17ff333f72fb43c82fb2c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c7a673410edd0c9ff6a17ff333f72fb43c82fb2c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531858" author="xgen-internal-githook" created="Wed, 2 Apr 2014 00:04:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Update exit_logging.js to also test mongos exit logging.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9e041ccf433660008ed2ddb1c2ed58ba78ef5488&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9e041ccf433660008ed2ddb1c2ed58ba78ef5488&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531839" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:44:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; unify signal handling between mongos and mongod&lt;/p&gt;

&lt;p&gt;(cherry picked from commit ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/261233b6c11a8282b1f626d496a1743a0b48821d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/261233b6c11a8282b1f626d496a1743a0b48821d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531838" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:44:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Remove printStackAndExit&lt;/p&gt;

&lt;p&gt;All of the functions in signal_handlers.cpp were broken when logfiles or&lt;br/&gt;
syslog were in use. This commit removes them and all callers. The files were&lt;br/&gt;
left in place for a later commit to fill them back in with a unified signal&lt;br/&gt;
handling system.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 11e43325fa2b0139df1eb9c367b984a5b112dbb4)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/019f0ccc9efbdb3a76e8e50259dd2921b939d39a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/019f0ccc9efbdb3a76e8e50259dd2921b939d39a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531837" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:44:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Eliminate rawOut and related functions&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 4e1eccfe64f424daead6ed22542377d2e1ce798e)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fda2dca224c42a24fc54e6f5192469084c49e0cc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fda2dca224c42a24fc54e6f5192469084c49e0cc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531836" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:44:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Use logging system in mongod signal handlers, test exit logging.&lt;/p&gt;

&lt;p&gt;Still not really safe for signal handlers, but no worse than before,&lt;br/&gt;
and correctly logs to the log file/syslog, so an improvement.&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f4e6aa9ee7c0dccbb4789d3dff1d92b086d67b88)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2013b68ddd9741cd894e35b0fc01e2475eaf3da5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2013b68ddd9741cd894e35b0fc01e2475eaf3da5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531833" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:41:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; unify signal handling between mongos and mongod&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ad91eb0f75f39c1bb71b5e0ca4279b883cb9fe8d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531832" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:41:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Remove printStackAndExit&lt;/p&gt;

&lt;p&gt;All of the functions in signal_handlers.cpp were broken when logfiles or&lt;br/&gt;
syslog were in use. This commit removes them and all callers. The files were&lt;br/&gt;
left in place for a later commit to fill them back in with a unified signal&lt;br/&gt;
handling system.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/11e43325fa2b0139df1eb9c367b984a5b112dbb4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/11e43325fa2b0139df1eb9c367b984a5b112dbb4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531831" author="xgen-internal-githook" created="Tue, 1 Apr 2014 23:41:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Eliminate rawOut and related functions&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4e1eccfe64f424daead6ed22542377d2e1ce798e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4e1eccfe64f424daead6ed22542377d2e1ce798e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="531484" author="xgen-internal-githook" created="Tue, 1 Apr 2014 19:47:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;andy10gen&apos;, u&apos;name&apos;: u&apos;Andy Schwerin&apos;, u&apos;email&apos;: u&apos;schwerin@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13429&quot; title=&quot;Replace writes to cout/cerr or stdout/stderr in server with log operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13429&quot;&gt;&lt;del&gt;SERVER-13429&lt;/del&gt;&lt;/a&gt; Use logging system in mongod signal handlers, test exit logging.&lt;/p&gt;

&lt;p&gt;Still not really safe for signal handlers, but no worse than before,&lt;br/&gt;
and correctly logs to the log file/syslog, so an improvement.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f4e6aa9ee7c0dccbb4789d3dff1d92b086d67b88&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f4e6aa9ee7c0dccbb4789d3dff1d92b086d67b88&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="117361">SERVER-13023</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="35793">SERVER-5553</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="152505">SERVER-14889</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="128431">SERVER-13410</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 31 Mar 2014 23:56:09 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 46 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 46 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlxov:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrxlx3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>110160</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrirvb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>