Add log to rake task and set rack_env