Ember-App-Kit: How to execute code only in release mode?

Posted by Dominik Schmidt on Stack Overflow See other posts from Stack Overflow or by Dominik Schmidt
Published on 2013-10-29T13:18:48Z Indexed on 2013/10/29 21:55 UTC
Read the original article Hit count: 181

Filed under:
|

I have created an error handler as described here: http://emberjs.com/guides/understanding-ember/debugging/#toc_implement-a-code-ember-onerror-code-hook-to-log-all-errors-in-production

But this code is not only executed in production mode but also in normal debug builds which floods my server logs. I know that Ember.debug() calls and alike are being filtered out for production builds, but I couldn't find out where/how that is implemented and if that same mechanism could be used to make my code only fire in production code.

© Stack Overflow or respective owner

Related posts about ember.js

Related posts about ember-app-kit