From 54d02c26cec39212d026319d222dc38e313520e4 Mon Sep 17 00:00:00 2001 From: Derek Fong <151783381+dfong-adh@users.noreply.github.com> Date: Thu, 19 Dec 2024 14:14:39 -0800 Subject: [PATCH] Changes per code review --- app/sidekiq/decision_review/delete_saved_claim_records_job.rb | 2 +- app/sidekiq/decision_review/failure_notification_email_job.rb | 2 +- app/sidekiq/decision_review/hlr_status_updater_job.rb | 2 +- app/sidekiq/decision_review/nod_status_updater_job.rb | 2 +- app/sidekiq/decision_review/sc_status_updater_job.rb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/sidekiq/decision_review/delete_saved_claim_records_job.rb b/app/sidekiq/decision_review/delete_saved_claim_records_job.rb index 946807076de..38b0784387d 100644 --- a/app/sidekiq/decision_review/delete_saved_claim_records_job.rb +++ b/app/sidekiq/decision_review/delete_saved_claim_records_job.rb @@ -12,7 +12,7 @@ class DeleteSavedClaimRecordsJob STATSD_KEY_PREFIX = 'worker.decision_review.delete_saved_claim_records' def perform - Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") + ActiveSupport::Deprecation.new.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") return unless enabled? diff --git a/app/sidekiq/decision_review/failure_notification_email_job.rb b/app/sidekiq/decision_review/failure_notification_email_job.rb index e6d49b16718..45d7e0bafd6 100644 --- a/app/sidekiq/decision_review/failure_notification_email_job.rb +++ b/app/sidekiq/decision_review/failure_notification_email_job.rb @@ -20,7 +20,7 @@ class FailureNotificationEmailJob STATSD_KEY_PREFIX = 'worker.decision_review.failure_notification_email' def perform - Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") + ActiveSupport::Deprecation.new.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") return unless should_perform? diff --git a/app/sidekiq/decision_review/hlr_status_updater_job.rb b/app/sidekiq/decision_review/hlr_status_updater_job.rb index 4635ad73488..eaaf36a4c74 100644 --- a/app/sidekiq/decision_review/hlr_status_updater_job.rb +++ b/app/sidekiq/decision_review/hlr_status_updater_job.rb @@ -5,7 +5,7 @@ module DecisionReview class HlrStatusUpdaterJob < SavedClaimStatusUpdaterJob def perform - Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") + ActiveSupport::Deprecation.new.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") super end diff --git a/app/sidekiq/decision_review/nod_status_updater_job.rb b/app/sidekiq/decision_review/nod_status_updater_job.rb index 936edd1bece..0d89b1ce999 100644 --- a/app/sidekiq/decision_review/nod_status_updater_job.rb +++ b/app/sidekiq/decision_review/nod_status_updater_job.rb @@ -5,7 +5,7 @@ module DecisionReview class NodStatusUpdaterJob < SavedClaimStatusUpdaterJob def perform - Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") + ActiveSupport::Deprecation.new.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") super end diff --git a/app/sidekiq/decision_review/sc_status_updater_job.rb b/app/sidekiq/decision_review/sc_status_updater_job.rb index df761d86c67..472ea067666 100644 --- a/app/sidekiq/decision_review/sc_status_updater_job.rb +++ b/app/sidekiq/decision_review/sc_status_updater_job.rb @@ -5,7 +5,7 @@ module DecisionReview class ScStatusUpdaterJob < SavedClaimStatusUpdaterJob def perform - Rails.logger.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") + ActiveSupport::Deprecation.new.warn("#{self.class.name} job is deprecated and will be replaced by DR engine job") super end