set RAILS_ENV in rake task and modified log format