<commit_before>define(['handlers/utils', 'handlers/app/processor'], function (utils, processor) {

    return function (request, route, svr) {
        var payload = request.payload,
            params = {
                params: utils.getParams(request),
                cookies: utils.getCookies(request),
                _rawReq: request,
                svr: svr,
                headers: utils.getHeaders(request),
                url: utils.getParsedUrl(request)
            };

        if (payload && payload._lazo) {
            params.exlcude = payload._lazo.exclude;
            params.layout = payload._lazo.layout;
        }

        LAZO.logger.debug(['server.handlers.app.main.processor.reply'], 'Processing route request...', route);

        processor.reply(route, params, {
            error: function (err) {
                err = err instanceof Error ? err : new Error(err);
                LAZO.logger.debug(['server.handlers.app.main.processor.reply'], 'Error processing request...', route, err);
                throw err; // hapi domain catches error
            },
            success: function (response) {
                request.reply(response);
            }
        });

    };

});<commit_msg>log request url object<commit_after>define(['handlers/utils', 'handlers/app/processor'], function (utils, processor) {

    return function (request, route, svr) {
        var payload = request.payload,
            params = {
                params: utils.getParams(request),
                cookies: utils.getCookies(request),
                _rawReq: request,
                svr: svr,
                headers: utils.getHeaders(request),
                url: utils.getParsedUrl(request)
            };

        if (payload && payload._lazo) {
            params.exlcude = payload._lazo.exclude;
            params.layout = payload._lazo.layout;
        }

        LAZO.logger.debug(['server.handlers.app.main.processor.reply'], 'Processing route request...', route, params.url);

        processor.reply(route, params, {
            error: function (err) {
                err = err instanceof Error ? err : new Error(err);
                LAZO.logger.debug(['server.handlers.app.main.processor.reply'], 'Error processing request...', route, params.url, err);
                throw err; // hapi domain catches error
            },
            success: function (response) {
                request.reply(response);
            }
        });

    };

});
{'fraction_non_alphanumeric': 0.12353653613241825, 'fraction_numerical': 0.0, 'mean_word_length': 1.7594654788418709, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4800090', 'n_tokens_mistral': 668, 'n_tokens_neox': 633, 'n_words': 137}