mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 11:21:24 +00:00
Debug-log command arguments
This commit is contained in:
parent
3effedbcb1
commit
ca34a15cd3
1 changed files with 3 additions and 1 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue