fn log_excluded_depls(depls: &BTreeSet<Release>, actor: &UpdateAgentInfo) {
        // Exclude booted deployment.
        let mut other_depls = depls.clone();
        if !other_depls.remove(&actor.identity.current_os) {
            log::error!("could not find booted deployment in deployments");
            return; // Early return since this really should not happen.
        }

        let excluded_depls_count = other_depls.len();
        if excluded_depls_count > 0 {
            log::info!(
                "found {} other finalized deployment{}",
                excluded_depls_count,
                if excluded_depls_count > 1 { "s" } else { "" }
            );
            for release in other_depls {
                log::info!(
                    "deployment {} ({}) will be excluded from being a future update target",
                    release.version,
                    release.checksum
                );
            }
        } else {
            log::debug!(
                "no other local finalized deployments found; no update targets will be excluded."
            );
        }
    }
/// Log at INFO level how many and which deployments will be excluded from being
/// future update targets.
Log at INFO level how many and which deployments will be excluded from being
future update targets.
Log at INFO level how many and which deployments will be excluded from being future update targets .
fn log_excluded_depls(depls: &BTreeSet<Release>, actor: &UpdateAgentInfo) {
        // Exclude booted deployment.
        let mut other_depls = depls.clone();
        if !other_depls.remove(&actor.identity.current_os) {
            log::error!("could not find booted deployment in deployments");
            return; // Early return since this really should not happen.
        }
        let excluded_depls_count = other_depls.len();
        if excluded_depls_count > 0 {
            log::info!(
                "found {} other finalized deployment{}",
                excluded_depls_count,
                if excluded_depls_count > 1 { "s" } else { "" }
            );
            for release in other_depls {
                log::info!(
                    "deployment {} ({}) will be excluded from being a future update target",
                    release.version,
                    release.checksum
                );
            }
        } else {
            log::debug!(
                "no other local finalized deployments found; no update targets will be excluded."
            );
        }
    }
fn log_excluded_depls ( depls : & BTreeSet < Release > , actor : & UpdateAgentInfo ) { // Exclude booted deployment. let mut other_depls = depls . clone ( ) ; if ! other_depls . remove ( & actor . identity . current_os ) { log :: error ! ( " " ) ; return ; // Early return since this really should not happen. } let excluded_depls_count = other_depls . len ( ) ; if excluded_depls_count > 0 { log :: info ! ( " " excluded_depls_count if excluded_depls_count 1 { " " } else { " " } ) ; for release in other_depls { log :: info ! ( " " release version release checksum ) ; } } else { log :: debug ! ( " " ) ; } }
Log at INFO level how many and which deployments will be excluded from being
future update targets.
Log at INFO level how many and which deployments will be excluded from being future update targets .
depls
&BTreeSet<Release>
actor
&UpdateAgentInfo