Class: PhusionPassenger::Rails3Extensions::AnalyticsLogging::ExceptionLogger

Inherits:
Object
  • Object
show all
Defined in:
lib/phusion_passenger/rails3_extensions/init.rb

Instance Method Summary collapse

Constructor Details

#initialize(app, analytics_logger) ⇒ ExceptionLogger

Returns a new instance of ExceptionLogger.



116
117
118
119
# File 'lib/phusion_passenger/rails3_extensions/init.rb', line 116

def initialize(app, analytics_logger)
	@app = app
	@analytics_logger = analytics_logger
end

Instance Method Details

#call(env) ⇒ Object



121
122
123
124
125
126
# File 'lib/phusion_passenger/rails3_extensions/init.rb', line 121

def call(env)
	@app.call(env)
rescue Exception => e
	log_analytics_exception(env, e) if env[PASSENGER_TXN_ID]
	raise e
end