Class: Rack::Mapper::Logger

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

Instance Method Summary collapse

Instance Method Details

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



51
52
53
54
55
56
57
# File 'lib/rack/mapper.rb', line 51

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