Skip to content

Commit

Permalink
More generic check for rack_env being populated
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Hale committed Jan 4, 2017
1 parent 1fcfb77 commit bbfc6d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pliny/error_reporters/rollbar.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def notify(exception, context:, rack_env:)

def fetch_scope(context:, rack_env:)
scope = {}
if rack_env.has_key?("rack.input")
unless rack_env.empty?
scope[:request] = proc { extract_request_data_from_rack(rack_env) }
end
scope
Expand Down

0 comments on commit bbfc6d6

Please sign in to comment.