<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:19:56 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-9282] Audit tools for correct handling of log output</title>
                <link>https://jira.mongodb.org/browse/SERVER-9282</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The logging output in the tools is inconsistent and may cause issues in certain situations.&lt;/p&gt;

&lt;p&gt;For example, in dump.cpp and export.cpp, all output is always sent to log() which uses stdout.  This is a problem because mongodump and mongoexport can send actual data to stdout.  To fix this, we need to always check the variable _usesstdout from tool.cpp to optionally send log messages to stderr.&lt;/p&gt;

&lt;p&gt;However, some tools use stderr for informational and log messages when it is actually not necessary.  Mongorestore does this.  In these cases, log messages should go to stdout instead.  &lt;/p&gt;

&lt;p&gt;Also, as described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2011&quot; title=&quot;mongodump, bsondump and mongoexport should only write to stderr in case of a serious error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2011&quot;&gt;&lt;del&gt;SERVER-2011&lt;/del&gt;&lt;/a&gt;, there are situations where we are sending data to stdout, but we also don&apos;t want informational messages to go to stderr.  The --quiet option is meant to solve this problem, and we should make sure that dump.cpp and export.cpp check for this.&lt;/p&gt;

&lt;p&gt;Finally, I think it might be good to make a test to make sure that the --quiet option actually silences all info messages, and to make sure that there aren&apos;t any logging messages that interfere with data sent to stdout.&lt;/p&gt;</description>
                <environment></environment>
        <key id="71131">SERVER-9282</key>
            <summary>Audit tools for correct handling of log output</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="sverch">Shaun Verch</assignee>
                                    <reporter username="sverch">Shaun Verch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Apr 2013 18:44:48 +0000</created>
                <updated>Mon, 11 Jul 2016 17:58:03 +0000</updated>
                            <resolved>Fri, 11 Oct 2013 19:30:28 +0000</resolved>
                                                    <fixVersion>2.5.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="439830" author="auto" created="Fri, 11 Oct 2013 19:28:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;Zarkantho&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9282&quot; title=&quot;Audit tools for correct handling of log output&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9282&quot;&gt;&lt;del&gt;SERVER-9282&lt;/del&gt;&lt;/a&gt; Audit tools for correct handling of log output&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0502950b1cf05c64f1a367e00911c06baa65688a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0502950b1cf05c64f1a367e00911c06baa65688a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="435224" author="samantha.ritter@10gen.com" created="Thu, 3 Oct 2013 15:40:13 +0000"  >&lt;p&gt;Added a comment about mongorestore.  In more detail:&lt;/p&gt;

&lt;p&gt;&amp;gt; mongorestore --db digg out.bson&lt;/p&gt;

&lt;p&gt;This command is not sending data to stdout, so informational messages should be routed to stdout.  Instead, they go to stderr.  &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sverch&quot; class=&quot;user-hover&quot; rel=&quot;sverch&quot;&gt;sverch&lt;/a&gt; explained that this might be related to code that is shared between mongorestore and bsondump, where using stderr is hard-coded in.  &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="13514">SERVER-2011</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="20992">TOOLS-140</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="70942">SERVER-9268</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 30 Aug 2013 13:52:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 18 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-2011'>SERVER-2011</a></s>]]></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>
                            10 years, 18 weeks, 5 days 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>auto</customfieldvalue>
            <customfieldvalue>samantha.ritter@mongodb.com</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmxv3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>48898</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|ht00qn:</customfieldvalue>

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