Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log the json that we are sending to the go binary #4067

Merged
merged 4 commits into from
Mar 6, 2023
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
3 changes: 2 additions & 1 deletion crates/turborepo/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::{

use anyhow::Result;
use dunce::canonicalize as fs_canonicalize;
use log::{debug, error};
use log::{debug, error, trace};
use turborepo_lib::{Args, Payload};

fn run_go_binary(args: Args) -> Result<i32> {
Expand Down Expand Up @@ -42,6 +42,7 @@ fn run_go_binary(args: Args) -> Result<i32> {
}

let serialized_args = serde_json::to_string(&args)?;
trace!("Invoking go binary with {}", serialized_args);
let mut command = process::Command::new(go_binary_path)
.arg(serialized_args)
.stdout(Stdio::inherit())
Expand Down