lib/helpers/bunyan.js
function clientReq(req) {
    if (!req) {
        return (req);
    }

    var host;

    try {
        host = req.host.split(':')[0];
    } catch (e) {
        host = false;
    }

    return ({
        method: req ? req.method : false,
        url: req ? req.path : false,
        address: host,
        port: req ? req.port : false,
        headers: req ? req.headers : false
    });
}
function clientReq(req) {
    if (!req) {
        return (req);
    }

    var host;

    try {
        host = req.host.split(':')[0];
    } catch (e) {
        host = false;
    }

    return ({
        method: req ? req.method : false,
        url: req ? req.path : false,
        address: host,
        port: req ? req.port : false,
        headers: req ? req.headers : false
    });
}
function clientReq ( req ) { if ( ! req ) { return ( req ) ; } var host ; try { host = req . host . split ( ':' ) [ 0 ] ; } catch ( e ) { host = false ; } return ( { method : req ? req . method : false , url : req ? req . path : false , address : host , port : req ? req . port : false , headers : req ? req . headers : false } ) ; }
a request serializer. returns a stripped down object for logging.
@private
@function clientReq
@param    {Object} req the request object
@returns  {Object}
a request serializer . returns a stripped down object for logging .