2
0
Fork 0
mirror of https://git.asonix.dog/asonix/pict-rs synced 2024-12-22 19:31:35 +00:00

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, 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(),