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:
parent
3effedbcb1
commit
ca34a15cd3
1 changed files with 3 additions and 1 deletions
|
@ -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(),
|
||||||
|
|
Loading…
Reference in a new issue