Debug-log command arguments

This commit is contained in:
asonix 2024-01-07 10:01:02 -06:00
parent 3effedbcb1
commit ca34a15cd3

View file

@ -156,10 +156,12 @@ impl Process {
timeout: u64,
) -> Result<Self, ProcessError>
where
T: AsRef<OsStr>,
T: AsRef<OsStr> + std::fmt::Debug,
{
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(|| {
Self::spawn(
command.clone(),