log doesn't work in production with delayed job

后端 未结 3 791
夕颜
夕颜 2021-01-01 07:01

I\'m suffering some weird issue where my delayed_jobs are failing in production. Finally I narrowed it down to the logger. If I comment out my log function calls, everythi

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-01 07:40

    It looks like you're trying to log to a closed file. Have you perhaps considered trying the SyslogLogger gem?

    Here's an article on how to use it with rails, which should help get you started.

提交回复
热议问题