lib/rollbar/exception_reporter.rb in rollbar-1.3.2 vs lib/rollbar/exception_reporter.rb in rollbar-1.4.0
- old
+ new
@@ -2,10 +2,10 @@
module ExceptionReporter
def report_exception_to_rollbar(env, exception)
exception_message = exception.respond_to?(:message) ? exception.message : 'No Exception Message'
Rollbar.log_debug "[Rollbar] Reporting exception: #{exception_message}"
- exception_data = Rollbar.log(Rollbar.configuration.uncaught_exception_level, exception)
+ exception_data = Rollbar.log(Rollbar.configuration.uncaught_exception_level, exception, :use_exception_level_filters => true)
if exception_data.is_a?(Hash)
env['rollbar.exception_uuid'] = exception_data[:uuid]
Rollbar.log_debug "[Rollbar] Exception uuid saved in env: #{exception_data[:uuid]}"
elsif exception_data == 'disabled'