In a rake task if I use puts command then I see the output on console. However I will not see that message in log file when app is deployed on production.
However if I s
How about creating an application helper which detects which environment is running and does the right thing?
def output_debug(info) if RAILS_ENV == "development" puts info else logger.info info end end
Then call output_debug instead of puts or logger.info