This project is archived and is in readonly mode.
Logging from rake tasks is broken in production environment
-
josh
- State changed from new to wontfix
-
David Muir
eh? why is this a wontfix?
I just wasted half my day trying to figure out why I wasn't getting any logs...
Can this be overridden via the production.rb?
If not, is my only option to run all my rake tasks in development mode? -
Ryan Bigg
- State changed from wontfix to open
- Importance changed from to
This is still happening. This should not be marked as "wontfix" without a good reason.
-
Ryan Bigg
If you come across this error, it's because you're not flushing the log output. Use this which will automatically flush the log on every log call:
Rails.logger.auto_flushing = true
-
Ryan Bigg
- State changed from open to resolved
