Skip to content

Instantly share code, notes, and snippets.

@textgoeshere
Created May 30, 2011 23:14
Show Gist options
  • Save textgoeshere/999621 to your computer and use it in GitHub Desktop.
Save textgoeshere/999621 to your computer and use it in GitHub Desktop.
# 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
@textgoeshere
Copy link
Author

this is now in Thin master macournoyer/thin@54799d7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment