lib/tracer_client/log.rb in tracer_client-0.1.3 vs lib/tracer_client/log.rb in tracer_client-0.1.4

- old
+ new

@@ -55,11 +55,15 @@ CODE end def self.exception(exception, subject, tags = '', data = {}) - exception_message(exception, :crit, subject, tags, data, exception.backtrace) - exception + if Rails.env.development? + raise exception + else + exception_message(exception, :crit, subject, tags, data, exception.backtrace) + exception + end end def self.exception_with_alert(exception, subject, tags = '', data = {}) exception(exception, subject, tags, data.merge(with_alert: true))