diff --git a/Cargo.lock b/Cargo.lock index 07ed801..c7f74a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -335,6 +335,7 @@ dependencies = [ "serde_json", "serde_yaml", "tokio", + "tracing", ] [[package]] diff --git a/crates/cuddle-ci/Cargo.toml b/crates/cuddle-ci/Cargo.toml index b3654be..2416cae 100644 --- a/crates/cuddle-ci/Cargo.toml +++ b/crates/cuddle-ci/Cargo.toml @@ -22,6 +22,7 @@ tokio.workspace = true serde_json.workspace = true serde_yaml.workspace = true serde.workspace = true +tracing = {version = "0.1.40", features = ["log"]} [dev-dependencies] tokio.workspace = true diff --git a/crates/cuddle-ci/src/cuddle_x.rs b/crates/cuddle-ci/src/cuddle_x.rs index fd466f3..638fa46 100644 --- a/crates/cuddle-ci/src/cuddle_x.rs +++ b/crates/cuddle-ci/src/cuddle_x.rs @@ -35,7 +35,15 @@ pub mod well_known { use super::CuddleX; pub async fn render() -> eyre::Result<()> { - CuddleX::command("render").run().await?; + let (stdout, stderr, _) = CuddleX::command("render").run().await?; + + for line in stdout.lines() { + tracing::trace!("render: {}", line); + } + + for line in stderr.lines() { + tracing::trace!("render: {}", line); + } Ok(()) }