コード例 #1
0
ファイル: upgradelib.php プロジェクト: jtibbetts/moodle
/**
 * 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);
}
コード例 #2
0
ファイル: upgradelib.php プロジェクト: ajv/Offline-Caching
/**
 * upgrade logging functions
 */
function upgrade_handle_exception($ex, $plugin = null)
{
    default_exception_handler($ex, true, $plugin);
}