<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:10:04 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-620] Runtime flag for TRACE</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-620</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;I love the mongoc tracing, its a godsend.&lt;/p&gt;

&lt;p&gt;During development of the PHP driver I always compile mongoc with -DMONGOC_TRACE and then at runtime in my log handler I check if I should print these things to stderr, file, or ignore it.&lt;/p&gt;

&lt;p&gt;I am planning on shipping the driver with tracing enabled as I want to be able to get full debugging logs with a flip of a userland-switch (e.g. no need for the user to recompile anything or jump through hoops).&lt;/p&gt;

&lt;p&gt;This works fine for all the other log events without any clear performance penalty (-ish, vargs and strdupv_printf()s...) &amp;#8211; but in the tracing case, DUMP_BYTES() &amp;amp; DUMP_IOVEC() are painful.&lt;/p&gt;

&lt;p&gt;It would be fantastic if we could short circuit the DUMP_*() madness, and out of mongoc_log() based on a &quot;config setting&quot;.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="199335">CDRIVER-620</key>
            <summary>Runtime flag for TRACE</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="bjori">Hannes Magnusson</assignee>
                                    <reporter username="bjori">Hannes Magnusson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Apr 2015 18:21:45 +0000</created>
                <updated>Mon, 17 Aug 2015 19:03:27 +0000</updated>
                            <resolved>Wed, 29 Jul 2015 16:53:07 +0000</resolved>
                                                    <fixVersion>1.2-beta0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="997532" author="xgen-internal-githook" created="Wed, 5 Aug 2015 19:28:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-620&quot; title=&quot;Runtime flag for TRACE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-620&quot;&gt;&lt;del&gt;CDRIVER-620&lt;/del&gt;&lt;/a&gt; restore logger state after tests&lt;/p&gt;

&lt;p&gt;Prevents a much-later crash in the test suite on win32.&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/841bb4d8a914f9b2fd364cb13d67cc665c71a294&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/841bb4d8a914f9b2fd364cb13d67cc665c71a294&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="992048" author="bjori" created="Wed, 29 Jul 2015 16:53:07 +0000"  >&lt;p&gt;We wound up with calling the functions:&lt;br/&gt;
mongoc_log_trace_enable () / mongoc_log_trace_disable ()&lt;/p&gt;</comment>
                            <comment id="992046" author="xgen-internal-githook" created="Wed, 29 Jul 2015 16:52:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;bjori&apos;, u&apos;name&apos;: u&apos;Hannes Magnusson&apos;, u&apos;email&apos;: u&apos;bjori@php.net&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-620&quot; title=&quot;Runtime flag for TRACE&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-620&quot;&gt;&lt;del&gt;CDRIVER-620&lt;/del&gt;&lt;/a&gt;: Allowing explicit enabling/disabling of tracing&lt;/p&gt;

&lt;p&gt;Tracing still needs to be compiled in!&lt;br/&gt;
When it is compiled in, you can turn it off/on by using&lt;br/&gt;
mongoc_log_trace_enable () / mongoc_log_trace_disable ()&lt;br/&gt;
Branch: 1.2.0-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2b8dca1eee6a780fbccb41978f302830109d7366&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2b8dca1eee6a780fbccb41978f302830109d7366&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="964774" author="jesse" created="Mon, 13 Jul 2015 18:26:17 +0000"  >&lt;p&gt;Should actually be &quot;mongoc_trace_enable&quot;.&lt;/p&gt;</comment>
                            <comment id="895646" author="bjori" created="Wed, 22 Apr 2015 22:24:03 +0000"  >&lt;p&gt;C API &amp;#8211; otherwise our users would have to restart their webserver cluster which isn&apos;t optimal.&lt;br/&gt;
kudos&lt;/p&gt;</comment>
                            <comment id="895560" author="jesse" created="Wed, 22 Apr 2015 21:10:50 +0000"  >&lt;p&gt;OK, I&apos;ll try to get this in by 1.2 final. An environment variable like DISABLE_MONGOC_TRACE, or a C API like mongoc&amp;#95;enable&amp;#95;trace(bool)?&lt;/p&gt;</comment>
                            <comment id="895307" author="bjori" created="Wed, 22 Apr 2015 18:35:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jesse&quot; class=&quot;user-hover&quot; rel=&quot;jesse&quot;&gt;jesse&lt;/a&gt; If you have the time it&apos;d be appreciated - I fear I don&apos;t have the time before the 1.2 ship date.&lt;/p&gt;</comment>
                            <comment id="895140" author="jesse" created="Wed, 22 Apr 2015 16:47:46 +0000"  >&lt;p&gt;Sounds good, would you like to do it or prefer I do?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="208491">CDRIVER-697</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="199341">PHPC-256</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hreio7:</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>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="640">C Driver 2015Q2 sprint 5</customfieldvalue>

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