mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
improve error log when timing out while connecting to mail server
This commit is contained in:
parent
92551df979
commit
9e9c81c30b
1 changed files with 4 additions and 1 deletions
|
@ -96,9 +96,12 @@ module Jobs
|
|||
process_popmail(p)
|
||||
end
|
||||
end
|
||||
rescue Net::OpenTimeout => e
|
||||
mark_as_errored!
|
||||
Discourse.handle_job_exception(e, error_context(@args, "Connecting to '#{SiteSetting.pop3_polling_host}' for polling emails."))
|
||||
rescue Net::POPAuthenticationError => e
|
||||
mark_as_errored!
|
||||
Discourse.handle_job_exception(e, error_context(@args, "Signing in to poll incoming email"))
|
||||
Discourse.handle_job_exception(e, error_context(@args, "Signing in to poll incoming emails."))
|
||||
end
|
||||
|
||||
POLL_MAILBOX_ERRORS_KEY ||= "poll_mailbox_errors".freeze
|
||||
|
|
Loading…
Reference in a new issue