setting heroku logs and fixing deliveries before_action