Skip to content

Commit

Permalink
fix: fix missing output after merging stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jun 20, 2024
1 parent df4db39 commit e89d36d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion worker/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,14 @@ async fn get_output_logged(
stdout_out.push(v);
}

let output = output.wait_with_output().await?;
let mut output = output.wait_with_output().await?;

// save data back to output.stdout, since we captured it manually
for line in &stdout_out {
output.stdout.extend_from_slice(line.as_bytes());
output.stdout.push(b'\n');
}

let elapsed = begin.elapsed();

logs.extend(
Expand Down

0 comments on commit e89d36d

Please sign in to comment.