From ca34a15cd3dd31b18f2a9ee9208fa6a57e548f78 Mon Sep 17 00:00:00 2001 From: asonix Date: Sun, 7 Jan 2024 10:01:02 -0600 Subject: [PATCH] Debug-log command arguments --- src/process.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/process.rs b/src/process.rs index a612606..270903a 100644 --- a/src/process.rs +++ b/src/process.rs @@ -156,10 +156,12 @@ impl Process { timeout: u64, ) -> Result where - T: AsRef, + T: AsRef + std::fmt::Debug, { let command: Arc = Arc::from(String::from(command)); + tracing::debug!("{envs:?} {command} {args:?}"); + let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| { Self::spawn( command.clone(),