Grails: Is there a debug flag I can check? <p>I have a few log.debugs() that I don't want to process (since they are heavy) unless the app is currently in debug mode (not production). </p> <p>Is there a way to check if the grails app is currently in debug mode/development mode?</p>