Skip to content

Commit

Permalink
amelioration(archive-uploader): capture avec sentry les erreurs du sw…
Browse files Browse the repository at this point in the history
…ift_wrapper
  • Loading branch information
Martin authored and LeSim committed Jul 19, 2023
1 parent 4862cc2 commit 87abc79
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/services/archive_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,13 @@ def retryable_syscall_to_custom_uploader(blob)
limit_to_retry = 1
begin
syscall_to_custom_uploader(blob)
rescue
rescue => e
if limit_to_retry > 0
limit_to_retry = limit_to_retry - 1
retry
else
Sentry.set_tags(procedure:)
Sentry.capture_exception(e, extra: { filename: })
end
end
end
Expand Down

0 comments on commit 87abc79

Please sign in to comment.