Ensure build_profile is logged during sphinx builds