mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-03 12:37:56 +00:00
chore: Add verbose errors for IMAP email channels (#9116)
This commit is contained in:
@@ -12,10 +12,10 @@ class Inboxes::FetchImapEmailsJob < MutexApplicationJob
|
|||||||
process_email_for_channel(channel)
|
process_email_for_channel(channel)
|
||||||
end
|
end
|
||||||
rescue *ExceptionList::IMAP_EXCEPTIONS => e
|
rescue *ExceptionList::IMAP_EXCEPTIONS => e
|
||||||
Rails.logger.error e
|
Rails.logger.error "Authorization error for email channel - #{channel.inbox.id} : #{e.message}"
|
||||||
channel.authorization_error!
|
channel.authorization_error!
|
||||||
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError, Net::IMAP::InvalidResponseError => e
|
rescue EOFError, OpenSSL::SSL::SSLError, Net::IMAP::NoResponseError, Net::IMAP::BadResponseError, Net::IMAP::InvalidResponseError => e
|
||||||
Rails.logger.error e
|
Rails.logger.error "Error for email channel - #{channel.inbox.id} : #{e.message}"
|
||||||
rescue LockAcquisitionError
|
rescue LockAcquisitionError
|
||||||
Rails.logger.error "Lock failed for #{channel.inbox.id}"
|
Rails.logger.error "Lock failed for #{channel.inbox.id}"
|
||||||
rescue StandardError => e
|
rescue StandardError => e
|
||||||
|
|||||||
Reference in New Issue
Block a user