Sha256: 0c5d6e1dd36c13285ceada521170a96aea4effc607bed8db53145cecb890ab39
Contents?: true
Size: 516 Bytes
Versions: 1
Compression:
Stored size: 516 Bytes
Contents
module AppfluxRuby module Rack class Middleware def initialize(app) @app = app end ## # Intercepts exception and sends notification to API. def call(env) begin AppfluxRuby::Bugflux.initialize_additional_data response = @app.call(env) rescue Exception => ex # TODO: Need to figure out a logger implementation. ::AppfluxRuby::BugfluxNotifier.notify(ex, env) raise ex end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
appflux_ruby-0.1.2 | lib/appflux_ruby/rack/middleware.rb |