title: Does Grails surround log statements with isSomethingEnabled()
body: <p>As per <a href="http://docs.codehaus.org/display/GROOVY/Groovy+1.8+release+notes#Groovy18releasenotes-Log" rel="nofollow">http://docs.codehaus.org/display/GROOVY/Groovy+1.8+release+notes#Groovy18releasenotes-Log</a> groovy does surround log statements with checks like isDebugEnabled() etc.</p>
  
  <p>Does grails do that for the generated code?</p>
  
  <p>For this log call in a grails service:</p>
  
  <pre><code>log.debug("competitors errors stage 1: ${failedCarrierRequests}")
  </code></pre>
  
  <p>In the decompiled .class file I see only this:    </p>
  
  <pre><code>arrayOfCallSite[85].call(log, new GStringImpl(new Object[] { allCompetitorDepartmentsRows.get() }, new String[] { "All competitors: ", "" }));
  </code></pre>
  
  <p>It is unclear whether there is a check for log level behind the scenes or not.</p>