新手问题 Exception_Notification 无法通过 Sidekiq 发送邮件

tailang · April 08, 2014 · Last by hz_qiuyuanxin replied at April 08, 2014 · 3074 hits

使用 Exception_Notification 这个 gem,当应用出错时,发送邮件给我,默认是通过占用进程来发邮件给我,现在修改通过 Sidekiq 发邮件,但发现 Exception_Notification 并没有通过 Sidekiq 发送邮件,而是任然通过占用那个进程来发送(其它 sidekiq 任务都 ok) 配置文件:

require 'exception_notification/rails'

require 'exception_notification/sidekiq'

ExceptionNotification.configure do |config|

  config.add_notifier :email, {
    :email_prefix         => "[APP] ",
    :sender_address       => %{"Notifier" <[email protected]>},
    :exception_recipients => %w{[email protected]}
  }

end
Exception_Notification 4.0.0
sidekiq 2.14.0

我也尝试将 sidekiq 换到 3.0.0 但还是无法使用~ 哪位遇到过这种问题没

文档已经写得明明白白了,楼主再检查一下配置,还有 sidekiq 本身的依赖以及配置

另外,当前 request 出错的话,仍然占用进程来发送异常邮件有何不可?

You need to Sign in before reply, if you don't have an account, please Sign up first.