Skip to content

Commit

Permalink
Rescue and log in post_to_pool too
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker committed Nov 27, 2023
1 parent bfd1fe5 commit b025f26
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/flipper/cloud/telemetry.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ def post_to_pool
return if drained.empty?
debug "action=post_to_pool metrics=#{drained.size}"
@pool.post { post_to_cloud(drained) }
rescue => error
error "action=post_to_pool error=#{error.inspect}"
end

# Posts the drained metrics to cloud.
Expand Down

0 comments on commit b025f26

Please sign in to comment.