<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:49 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>[CDRIVER-3710] Log monitoring errors with warning/error levels instead of debug</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3710</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Network and command errors encountered in multi-threaded monitoring are logged as debug errors (with level &lt;tt&gt;MONGOC_LOG_LEVEL_DEBUG&lt;/tt&gt;). They should be logged as &lt;tt&gt;MONGOC_LOG_LEVEL_ERROR&lt;/tt&gt; and&#160;&lt;tt&gt;MONGOC_LOG_LEVEL_WARNING&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;They were left as debug logs in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3535&quot; title=&quot;Reduce Client Time To Recovery On Topology Changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3535&quot;&gt;&lt;del&gt;CDRIVER-3535&lt;/del&gt;&lt;/a&gt;. This was because error/warning logs are printed to stderr. The test script compile-unix.sh asserts that tests nothing is printed to stderr. But many tests simulate monitoring errors with the mock server. See this conversation in the PR for more context. &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/625/files/65977607f7e1d500dfa4123711452c435ab08d3c#r435400372&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/625/files/65977607f7e1d500dfa4123711452c435ab08d3c#r435400372&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;We may need to add calls to &lt;tt&gt;capture_logs()&lt;/tt&gt; in all tests where we expect monitoring errors to occur, so they do not get printed to stderr.&lt;/p&gt;

&lt;p&gt;Also consider:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Errors encountered in single-threaded monitoring are not logged. If these are generally useful, it follows we should add similar logs for single-threaded monitoring in mongoc-async.c.&lt;/li&gt;
	&lt;li&gt;have test-libmongoc make assertions that unexpected error logs are not encountered. This way, it will be easier to test these assertions locally, and on any platform.&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment></environment>
        <key id="1374443">CDRIVER-3710</key>
            <summary>Log monitoring errors with warning/error levels instead of debug</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Sun, 7 Jun 2020 18:51:44 +0000</created>
                <updated>Fri, 10 Feb 2023 16:15:15 +0000</updated>
                                                                            <component>tests</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                        <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-4576</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jfz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>