app/lib/rack/huntup.rb
# Returns a hunting information for logging.
#
# @param [Rack::Request] req
# @param [Array<String>] hits
# @return [Hash]
Returns a hunting information for logging.
Returns a hunting information for logging .
def hunting_info(req, hits)
      info = {
        client_ip: req.env["REMOTE_ADDR"],
        hits: hits.join(","),
        type: "sleep-warm-hunting"
      }
      info[:message] = "#{info[:client_ip]} #{info[:hits]}"
      info
    end
def hunting_info ( req , hits ) info = { client_ip : req . env [ "REMOTE_ADDR" ] , hits : hits . join ( "," ) , type : "sleep-warm-hunting" } info [ :message ] = "#{info[:client_ip]} #{info[:hits]}" info end
Returns a hunting information for logging.
Returns a hunting information for logging .
None
Hash
req
<not_specific>
hits
<not_specific>
<not_specific>
None