I'm working on some code that should fail quickly and loudly if things go wrong. It's part of the mailer and called via the API by the mailing create pages.
But I can't get the exception to end up in the log (with a stack trace hopefully!)
Surprisingly both SQL errors and the CRM_Core_Exception I'm throwing end up in the JS console!
Is there a setting to change this behavior? I don't see one under the debugging settings.