lib/omnihooks/strategy.rb in omnihooks-0.0.2 vs lib/omnihooks/strategy.rb in omnihooks-0.0.3
- old
+ new
@@ -252,10 +252,10 @@
begin
evt = get_event
evt_type = get_event_type
self.class.instrument(evt_type, evt) if evt
- rescue => e
+ rescue Exception => e
log(:error, e.message)
log(:error, e.backtrace.join("\n"))
[500, {}, [EMPTY_STRING]]
else
log(:debug, "success")
\ No newline at end of file