Skip to content

Commit

Permalink
Print command
Browse files Browse the repository at this point in the history
  • Loading branch information
marcua committed Oct 30, 2024
1 parent bab43ab commit 2f1eb47
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/hosted_db/sandbox.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,14 @@ pub async fn run_in_sandbox(
isolated_runner_path.display()
),
]);

let mut child = cmd
.arg("--")
cmd.arg("--")
.arg("/tmp/ayb_isolated_runner")
.arg(tmp_db_path)
.arg((query_mode as i16).to_string())
.arg(query)
.stdout(Stdio::piped())
.stderr(Stdio::piped())
.spawn()?;
.arg(query);
println!("The commmand {:?}", cmd);

let mut child = cmd.stdout(Stdio::piped()).stderr(Stdio::piped()).spawn()?;

let mut stdout_reader = BufReader::new(child.stdout.take().unwrap());
let mut stderr_reader = BufReader::new(child.stderr.take().unwrap());
Expand Down

0 comments on commit 2f1eb47

Please sign in to comment.