add log for role calcu