lib/rollbar/middleware/rack.rb in rollbar-2.19.2 vs lib/rollbar/middleware/rack.rb in rollbar-2.19.3

- old
+ new

@@ -15,16 +15,19 @@ def call(env) Rollbar.reset_notifier! Rollbar.scoped(fetch_scope(env)) do begin + Rollbar.notifier.enable_locals response = @app.call(env) report_exception_to_rollbar(env, framework_error(env)) if framework_error(env) response rescue Exception => e report_exception_to_rollbar(env, e) raise + ensure + Rollbar.notifier.disable_locals end end end def fetch_scope(env) @@ -39,10 +42,10 @@ def person_data_proc(env) proc { extract_person_data_from_controller(env) } end - def framework_error(env) + def framework_error(_env) nil end end end end