This project is archived and is in readonly mode.

#543 ✓resolved
Michael Lovitt

Logging from rake tasks is broken in production environment

Reported by Michael Lovitt | July 3rd, 2008 @ 01:53 PM | in 2.x

To reproduce, create a fresh Rails project, put the attached test_logging.rake file inside /lib/tasks, and then run:

rake test_logging RAILS_ENV=production

The test_logging task calls, so the logged text should appear in the production.log file, but it does not.

I've reproduced in 2.0.2 and 2.1. Other folks have reported the same problem here:

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>