fix: log User is authenticated but not connected (#7394)

This commit is contained in:
Tejaswini Chile 2023-06-26 16:07:40 +05:30 committed by GitHub
parent 9cda16d0e8
commit 212d7caab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ class Inboxes::FetchImapEmailsJob < ApplicationJob
rescue *ExceptionList::IMAP_EXCEPTIONS => e
Rails.logger.error e
channel.authorization_error!
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError => e
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError => e
Rails.logger.error e
rescue StandardError => e
ChatwootExceptionTracker.new(e, account: channel.account).capture_exception