mirror of
https://github.com/logos-blockchain/logos-blockchain-testing.git
synced 2026-01-21 06:33:11 +00:00
Improve compose deployer logging
This commit is contained in:
parent
72c2d2eba2
commit
c1e749af33
@ -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 {
|
||||
|
||||
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
@ -45,6 +45,7 @@ impl ReadinessChecker {
|
||||
return Err(err.into());
|
||||
}
|
||||
|
||||
info!("compose readiness checks passed");
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user