Created
December 11, 2011 03:35
-
-
Save jacaetevha/1458091 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module MyNamespace | |
class MyApp < Sinatra::Base | |
... | |
after do | |
$APP_LOG.info "do some logging here" | |
... | |
end | |
error do | |
$APP_LOG.error "#{$!.message}: #{$@.join("\n")}" | |
raise $! # yeah, yeah... I would do something else here, but this is just an example | |
end | |
... | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment