Sha256: 93c6d1eceee5862e21e6a38f4cf95cde37a8236873616f0127f235986d990a8b

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

class Tartarus::Rack
  def initialize(app, configuration = {})
    @app = app 
    @configuration = configuration
  end

  def call(env)
    begin
      response = @app.call(env)
    rescue Exception => exception
      Tartarus.log(env, exception)
      raise
    end

    if env['rack.exception']
      Tartarus.log(env, exception) 
    end

    response
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tartarus-2.3 lib/tartarus/rack.rb
tartarus-2.2 lib/tartarus/rack.rb
tartarus-2.0.4 lib/tartarus/rack.rb
tartarus-2.0.3 lib/tartarus/rack.rb
tartarus-2.0.1 lib/tartarus/rack.rb
tartarus-2.0.0 lib/tartarus/rack.rb