From 87abc79627a487ab48b815952074c4df1c81f4bb Mon Sep 17 00:00:00 2001 From: Martin Date: Wed, 19 Jul 2023 10:27:02 +0200 Subject: [PATCH] amelioration(archive-uploader): capture avec sentry les erreurs du swift_wrapper --- app/services/archive_uploader.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/services/archive_uploader.rb b/app/services/archive_uploader.rb index fc644a65e2c..7da5ff246a5 100644 --- a/app/services/archive_uploader.rb +++ b/app/services/archive_uploader.rb @@ -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