Class: Rack::Mapper::AsyncLogger

Inherits:
AsyncRack::CommonLogger
  • Object
show all
Defined in:
lib/rack/mapper.rb

Overview

Logger

Instance Method Summary collapse

Instance Method Details

#log(env, status, header, began_at) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/rack/mapper.rb', line 61

def log env, status, header, began_at
  env_path_info    = env['PATH_INFO']
  env['PATH_INFO'] = env['REQUEST_PATH'] || ::File.join(env['SCRIPT_NAME'], env['PATH_INFO'])
  super
ensure
  env['PATH_INFO'] = env_path_info
end