class Falcon::Verbose

def log(start_time, env, response, error)

def log(start_time, env, response, error)
	duration = Time.now - start_time
	
	request_method = env['REQUEST_METHOD']
	request_path = env['PATH_INFO']
	
	if response
		status, headers, body = response
		@logger.info "#{request_method} #{request_path} -> #{status}; Content length #{headers.fetch('Content-Length', '-')} bytes; took #{duration} seconds"
	else
		@logger.info "#{request_method} #{request_path} -> #{error}; took #{duration} seconds"
	end
end