Improve compose deployer logging

This commit is contained in:
andrussal 2025-12-11 09:00:14 +01:00
parent 72c2d2eba2
commit c1e749af33
3 changed files with 15 additions and 1 deletions

View File

@ -44,6 +44,14 @@ impl DeploymentOrchestrator {
descriptors,
} = setup.prepare_workspace().await?;
tracing::info!(
validators = descriptors.validators().len(),
executors = descriptors.executors().len(),
duration_secs = scenario.duration().as_secs(),
readiness_checks = self.deployer.readiness_checks,
"compose deployment starting"
);
let host_ports = PortManager::prepare(&mut environment, &descriptors).await?;
if self.deployer.readiness_checks {

View File

@ -16,7 +16,11 @@ impl PortManager {
environment: &mut StackEnvironment,
descriptors: &GeneratedTopology,
) -> Result<HostPortMapping, ComposeRunnerError> {
debug!("resolving host ports for compose services");
debug!(
validators = descriptors.validators().len(),
executors = descriptors.executors().len(),
"resolving host ports for compose services"
);
match discover_host_ports(environment, descriptors).await {
Ok(mapping) => {
info!(
@ -31,6 +35,7 @@ impl PortManager {
environment
.fail("failed to determine container host ports")
.await;
tracing::warn!(%err, "failed to resolve host ports");
Err(err)
}
}

View File

@ -45,6 +45,7 @@ impl ReadinessChecker {
return Err(err.into());
}
info!("compose readiness checks passed");
Ok(())
}
}