How do I capture a rsolr Sunspot exception raised on a different thread from a model callback?
问题 Even though I can capture the exception raised from @post.save and log the error and print the threads begin if @post.save rescue Exception => ex # rescue Errno::ECONNREFUSED => ex Thread.list.each {|t| p t} Rails.logger.error "ERROR: Could not save blog post! Is the Solr server up and running? Exception: #{ex}" it still errors out on the web page and doesn't show any of my code in the stack trace. The solr Sunspot model callback is running on a separate thread. rsolr (1.0.9) lib/rsolr