From e0977665e847c014eea6b94c2972c7cbfa33f748 Mon Sep 17 00:00:00 2001 From: Kat Date: Tue, 8 Oct 2024 08:48:23 +0100 Subject: [PATCH] Correctly caption message to sentry --- app/services/bulk_upload/sales/validator.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/services/bulk_upload/sales/validator.rb b/app/services/bulk_upload/sales/validator.rb index 777424349..a473a6461 100644 --- a/app/services/bulk_upload/sales/validator.rb +++ b/app/services/bulk_upload/sales/validator.rb @@ -43,12 +43,12 @@ class BulkUpload::Sales::Validator return false if any_setup_errors? if row_parsers.any?(&:block_log_creation?) - Sentry.capture_exception("Bulk upload log creation blocked: #{bulk_upload.id}.") + Sentry.capture_message("Bulk upload log creation blocked: #{bulk_upload.id}.") return false end if any_logs_already_exist? && FeatureToggle.bulk_upload_duplicate_log_check_enabled? - Sentry.capture_exception("Bulk upload log creation blocked due to duplicate logs: #{bulk_upload.id}.") + Sentry.capture_message("Bulk upload log creation blocked due to duplicate logs: #{bulk_upload.id}.") return false end @@ -57,7 +57,7 @@ class BulkUpload::Sales::Validator end if any_logs_invalid? - Sentry.capture_exception("Bulk upload log creation blocked due to invalid logs after blanking non setup fields: #{bulk_upload.id}.") + Sentry.capture_message("Bulk upload log creation blocked due to invalid logs after blanking non setup fields: #{bulk_upload.id}.") return false end