improve logging for email notifications rake task