Sha256: 3be805aa39340f9036d0482be11dd292b05499f88746c0cf49b338509fcfe80d
Contents?: true
Size: 422 Bytes
Versions: 1
Compression:
Stored size: 422 Bytes
Contents
require 'active_support' module Forcast module Application module Log extend ActiveSupport::Concern included do around_action :global_request_logging end def global_request_logging #logger.info "USERAGENT: #{request.headers['HTTP_USER_AGENT']}" begin yield ensure #logger.info "response_status: #{response.status}" end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
forcast-0.0.110 | lib/forcast/controllers/application/log.rb |