[英]Rails + delayed_job: logging mailer output
When sending emails in development mode the content is normally logged to stdout. 在开发模式下发送电子邮件时,内容通常会记录到stdout。 When the mail delivery is moved into the background the content is no longer logged. 当邮件传递移到后台时,不再记录内容。 Instead you just see something like Job Class#some_email (id=123) RUNNING
and Job Class#some_email (id=123) COMPLETED after 0.12345
. 相反,您只会Job Class#some_email (id=123) COMPLETED after 0.12345
看到Job Class#some_email (id=123) RUNNING
和Job Class#some_email (id=123) COMPLETED after 0.12345
。 Is there a way to continue logging the email content? 有没有办法继续记录电子邮件内容?
我不确定是否将内容记录到rails的日志文件中,但是如果您只想查看电子邮件的内容,我建议使用Ryan Bates的Letter Opener通过自动过程查看开发中的电子邮件。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.