civicrm/civicrm-core — pull request #4511 by Dawnthorn (2014-11-04 22:41:54+00:00)
Title: Log fatal errors for AJAX responses. CRM-15560

If you have a fatal error in an AJAX call, then the error doesn't get
logged to ConfigAndLog/Civicrm.*.log. This is because the logging stuff
happens after the call to CRM_Core_Page_AJAX::returnJsonResponse in
CRM_Core_Error::fatal and returnJsonRespons exits php.