<!-- 
RSS generated by JIRA (4.4#649-r158309) at Fri May 24 16:06:11 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/TLOG-10/TLOG-10.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[TLOG-10] Double-evaluation of arguments</title>
                <link>http://dev.clojure.org/jira/browse/TLOG-10</link>
                <project id="10030" key="TLOG">tools.logging</project>
                        <description>&lt;p&gt;The expansion of the log macros can double-evaluate the first argument.&lt;/p&gt;

&lt;p&gt;For example, the following call:&lt;/p&gt;

&lt;p&gt;  (log/info (expensive-call foo) bar)&lt;/p&gt;

&lt;p&gt;Expands to this:&lt;/p&gt;

&lt;p&gt;(let*&lt;br/&gt;
  [logger_&lt;em&gt;278&lt;/em&gt;&lt;em&gt;auto&lt;/em&gt;_&lt;br/&gt;
   (get-logger &lt;b&gt;logger-factory&lt;/b&gt; #&amp;lt;Namespace scratch.core&amp;gt;)]&lt;br/&gt;
  (if (enabled? logger_&lt;em&gt;278&lt;/em&gt;&lt;em&gt;auto&lt;/em&gt;_ :info)&lt;br/&gt;
    (if (instance? java.lang.Throwable (expensive-call foo))&lt;br/&gt;
      (log*&lt;br/&gt;
        logger_&lt;em&gt;278&lt;/em&gt;&lt;em&gt;auto&lt;/em&gt;_&lt;br/&gt;
        :info&lt;br/&gt;
        (expensive-call foo)&lt;br/&gt;
        (print-str bar))&lt;br/&gt;
      (log*&lt;br/&gt;
        logger_&lt;em&gt;278&lt;/em&gt;&lt;em&gt;auto&lt;/em&gt;_&lt;br/&gt;
        :info&lt;br/&gt;
        nil&lt;br/&gt;
        (print-str (expensive-call foo) bar)))))&lt;/p&gt;

&lt;p&gt;Note the calls to &quot;expensive-call&quot; both in the instance check and in the log* call.&lt;/p&gt;</description>
                <environment>tools.logging 0.2.5-SNAPSHOT</environment>
            <key id="15990">TLOG-10</key>
            <summary>Double-evaluation of arguments</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="ataggart">Alexander Taggart</assignee>
                                <reporter username="cperkins">Chris Perkins</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Feb 2013 21:14:55 -0600</created>
                <updated>Mon, 4 Feb 2013 22:28:23 -0600</updated>
                    <resolved>Mon, 4 Feb 2013 22:28:23 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30551" author="ataggart" created="Mon, 4 Feb 2013 22:28:23 -0600"  >&lt;p&gt;Fixed in 0.2.6.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11835" name="double-eval.diff" size="2588" author="cperkins" created="Mon, 4 Feb 2013 21:14:55 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>