Skip to content

Commit

Permalink
Add logging when event fails validation (#2460)
Browse files Browse the repository at this point in the history
Co-authored-by: Max Kadel <[email protected]>
  • Loading branch information
christinach and maxkadel authored Aug 21, 2024
1 parent b626050 commit 300674a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/services/aws_sqs_poller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ def dump_event
alma_job_status:,
message_body: message.to_json
)
rescue ActiveRecord::RecordInvalid => e
Rails.logger.error("#{e.message} message_body: #{message.to_json}")
Honeybadger.notify("#{e.message} message_body: #{message.to_json}")
raise e
end

def event_start
Expand Down

0 comments on commit 300674a

Please sign in to comment.