Merge pull request #9328 from mfo/US/reraise-error-on-archive-uploader
amelioration(archive-uploader): capture avec sentry les erreurs du swift_wrapper
This commit is contained in:
commit
8fb6d00e0f
1 changed files with 4 additions and 1 deletions
|
@ -81,10 +81,13 @@ class ArchiveUploader
|
|||
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
|
||||
|
|
Loading…
Reference in a new issue