Skip to content

Commit

Permalink
feat: log debug message when MIN_REQUIRED_AGENTS is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunster committed Oct 28, 2024
1 parent d87308b commit f2cd641
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bindings/trycp_runner/src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use holochain_conductor_api::{CellInfo, IssueAppAuthenticationTokenPayload};
use holochain_types::app::{AppBundle, AppBundleSource, InstallAppPayload};
use holochain_types::prelude::RoleName;
use holochain_types::websocket::AllowedOrigins;
use log::warn;
use log::{debug, warn};
use std::path::PathBuf;
use std::sync::{Arc, OnceLock};
use std::time::{Duration, Instant};
Expand Down Expand Up @@ -480,6 +480,7 @@ pub fn run_with_required_agents<RV: UserValuesConstraint, V: UserValuesConstrain
let agents_at_completion = run(definition)?;

let min_required_agents = std::env::var("MIN_REQUIRED_AGENTS")
.inspect_err(|_| debug!("MIN_REQUIRED_AGENTS not set, using default value"))
.ok()
.and_then(|v| {
v.parse()
Expand Down

0 comments on commit f2cd641

Please sign in to comment.