code: 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
      });
  }
docs: a request serializer. returns a stripped down object for logging.
  @private
  @function clientReq
  @param    {Object} req the request object
  @returns  {Object}