开发者

Delayed_job in development

开发者 https://www.devze.com 2023-01-08 03:10 出处:网络
Right now my Usermailer is written so I have UserMailer.delay.deliver_blah.Everything works perfect, but like before I\'d like the contents of the email printed out in the console f开发者_如何学JAVAor

Right now my Usermailer is written so I have UserMailer.delay.deliver_blah. Everything works perfect, but like before I'd like the contents of the email printed out in the console f开发者_如何学JAVAor debugging. HOw do I do this?


Set the ActionMailer logger and set the correct log level, during mailer initialization.

ActionMailer::Base.logger = Logger.new(STDOUT)
ActionMailer::Base.logger.level = :info

OR

ActionMailer::Base.logger = Rails.logger
ActionMailer::Base.logger.level = :info
0

精彩评论

暂无评论...
验证码 换一张
取 消