Skip to content

Commit

Permalink
protect against nil response
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Nov 30, 2023
1 parent d149229 commit acab7e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flipper/cloud/telemetry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def post_to_pool
def post_to_cloud(drained)
debug "action=post_to_cloud metrics=#{drained.size}"
response, error = submitter.call(drained)
debug "action=post_to_cloud response=#{response.inspect} body=#{response.body.inspect} error=#{error.inspect}"
debug "action=post_to_cloud response=#{response.inspect} body=#{response&.body.inspect} error=#{error.inspect}"

# Some of the errors are response code errors which have a response and
# thus may have a telemetry-interval header for us to respect.
Expand Down

0 comments on commit acab7e4

Please sign in to comment.