Created
May 30, 2011 23:14
-
-
Save textgoeshere/999621 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
# Force backtraces from Thin to output to STDERR | |
# workaround for http://stackoverflow.com/questions/4627928/get-rails-exceptions-to-show-using-capybara-and-selenium | |
module Thin::Logging | |
def log_error(e=$!) | |
STDERR.print "#{e}\n\t" + e.backtrace.join("\n\t") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
this is now in Thin master macournoyer/thin@54799d7