Skip to content

Instantly share code, notes, and snippets.

@jumski
Created July 26, 2013 12:04
Show Gist options
  • Save jumski/6088357 to your computer and use it in GitHub Desktop.
Save jumski/6088357 to your computer and use it in GitHub Desktop.
custom exception logger
require './application.rb'
class CustomExceptionLogger
def initialize(app)
@app = app
end
def call(env)
@app.call(env)
rescue Exception => e
puts '============================================'
puts '============================================'
puts '============================================'
puts '============================================'
puts '============================================'
puts '============================================'
end
end
use CustomExceptionLogger
run Application
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment