Module: Forcast::Application::Log

Extended by:
ActiveSupport::Concern
Defined in:
lib/forcast/controllers/application/log.rb

Instance Method Summary collapse

Instance Method Details

#global_request_loggingObject



11
12
13
14
15
16
17
18
# File 'lib/forcast/controllers/application/log.rb', line 11

def global_request_logging 
  #logger.info "USERAGENT: #{request.headers['HTTP_USER_AGENT']}"
  begin 
    yield 
  ensure 
    #logger.info "response_status: #{response.status}"
  end 
end