Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# monkey patch eventmachine to ignore errors and report them,
# instead of crashing!!
module EventMachine
class << self
alias_method :crashing_stop, :stop
end
def self.stop
if @wrapped_exception
Scaler.report_error(@wrapped_exception)
@wrapped_exception = nil
else
crashing_stop
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.