Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

simplify batch-processing log #622

Merged
3 commits merged into from
Mar 2, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions src/agent/onefuzz-agent/src/tasks/generic/input_poller.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,10 +128,8 @@ impl<M> InputPoller<M> {

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.
Expand Down Expand Up @@ -182,7 +180,7 @@ impl<M> InputPoller<M> {
delay_with_jitter(POLL_INTERVAL).await;
}
State::Downloaded(_msg, _url, input, _tempdir) => {
info!("Processing downloaded input: {:?}", input);
info!("Processing downloaded input: {}", input.display());
}
_ => {}
}
Expand Down