/** Whether an AppError should be auto-captured as an error-log entry. */
export function shouldAutoCapture(services, error) {
    if (!services.config.errorLog.autoCapture) {
        return false;
    }
    return services.config.errorLog.captureClientErrors || error.status >= 500;
}
