def METHOD_NAME(
    feature_state_id: int, msg_template: str
):
    from features.models import FeatureState
    feature_state = FeatureState.objects.filter(id=feature_state_id).first()
    if not feature_state:
        logger.info(
            "FeatureState not found. Likely means the change request was deleted before scheduled_for."
        )
        return
    if not feature_state.change_request:
        raise RuntimeError("Feature state must have a change request")
    log = msg_template % (
        feature_state.feature.name,
        feature_state.change_request.title,
    )
    AuditLog.objects.create(
        related_object_id=feature_state.id,
        related_object_type=RelatedObjectType.FEATURE_STATE.name,
        environment=feature_state.environment,
        project=feature_state.environment.project,
        log=log,
        is_system_event=True,
    )