Debug-log command arguments

This commit is contained in:
asonix 2024-01-07 10:01:02 -06:00
parent 3effedbcb1
commit ca34a15cd3
1 changed files with 3 additions and 1 deletions

View File

@ -156,10 +156,12 @@ impl Process {
timeout: u64, timeout: u64,
) -> Result<Self, ProcessError> ) -> Result<Self, ProcessError>
where where
T: AsRef<OsStr>, T: AsRef<OsStr> + std::fmt::Debug,
{ {
let command: Arc<str> = Arc::from(String::from(command)); let command: Arc<str> = Arc::from(String::from(command));
tracing::debug!("{envs:?} {command} {args:?}");
let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| { let res = tracing::trace_span!(parent: None, "Create command", %command).in_scope(|| {
Self::spawn( Self::spawn(
command.clone(), command.clone(),