From 6574407636e3eca5c57984146832793def998781 Mon Sep 17 00:00:00 2001 From: Tejaswini Chile Date: Wed, 7 Sep 2022 11:41:56 +0530 Subject: [PATCH] fix: Track Imap exception in sentry (#5397) --- app/helpers/api/v1/inboxes_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/api/v1/inboxes_helper.rb b/app/helpers/api/v1/inboxes_helper.rb index c88f2fb73..57b750274 100644 --- a/app/helpers/api/v1/inboxes_helper.rb +++ b/app/helpers/api/v1/inboxes_helper.rb @@ -53,7 +53,7 @@ module Api::V1::InboxesHelper rescue StandardError => e raise StandardError, e.message ensure - Rails.logger.error e if e.present? + ChatwootExceptionTracker.new(e).capture_exception if e.present? end def check_smtp_connection(channel_data, smtp)