fixed logging to only log warning messages for dev env, added heroku env switch