/** * upgrade logging functions */ function upgrade_handle_exception($ex, $plugin = null) { global $CFG; // rollback everything, we need to log all upgrade problems abort_all_db_transactions(); $info = get_exception_info($ex); // First log upgrade error upgrade_log(UPGRADE_LOG_ERROR, $plugin, 'Exception: ' . get_class($ex), $info->message, $info->backtrace); // Always turn on debugging - admins need to know what is going on set_debugging(DEBUG_DEVELOPER, true); default_exception_handler($ex, true, $plugin); }
/** * upgrade logging functions */ function upgrade_handle_exception($ex, $plugin = null) { default_exception_handler($ex, true, $plugin); }