From e43c1c875cc2b11005b0f5775e30f8f2df6d7fa7 Mon Sep 17 00:00:00 2001 From: bmc-msft <41130664+bmc-msft@users.noreply.github.com> Date: Tue, 2 Mar 2021 12:32:07 -0500 Subject: [PATCH] simplify batch-processing log (#622) Simplifies the logs from: `Processing batch-downloaded input Ok(DirEntry(DirEntry("task_crashes_1/input-b4c3482194a6ebd275577ea52255fcea3358f3220c408d3c53b9f32b653e6586.txt")))` to: `Processing batch-downloaded input: task_crashes_1/input-b4c3482194a6ebd275577ea52255fcea3358f3220c408d3c53b9f32b653e6586.txt` --- src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs b/src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs index 3361cce29..bfbd4edb4 100644 --- a/src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs +++ b/src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs @@ -128,10 +128,8 @@ impl InputPoller { let mut read_dir = fs::read_dir(&to_process.path).await?; while let Some(file) = read_dir.next().await { - info!("Processing batch-downloaded input {:?}", file); - - let file = file?; - let path = file.path(); + let path = file?.path(); + info!("Processing batch-downloaded input: {}", path.display()); // Compute the file name relative to the synced directory, and thus the // container. @@ -182,7 +180,7 @@ impl InputPoller { delay_with_jitter(POLL_INTERVAL).await; } State::Downloaded(_msg, _url, input, _tempdir) => { - info!("Processing downloaded input: {:?}", input); + info!("Processing downloaded input: {}", input.display()); } _ => {} }