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

Revert "chore: add option to dump args sent to go (#3515)" #3782

Merged
merged 1 commit into from
Feb 13, 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
14 changes: 2 additions & 12 deletions crates/turborepo-lib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ mod shim;
mod ui;

use anyhow::Result;
use log::{debug, error, log_enabled, Level};
use log::error;

pub use crate::cli::Args;
use crate::package_manager::PackageManager;
Expand All @@ -32,17 +32,7 @@ pub fn get_version() -> &'static str {

pub fn main() -> Payload {
match shim::run() {
Ok(payload) => {
match &payload {
Payload::Go(args) if log_enabled!(Level::Debug) => {
if let Ok(serialized_args) = serde_json::to_string_pretty(&args) {
debug!("Args passed to Go binary:\n{}", serialized_args);
}
}
_ => (),
}
payload
}
Ok(payload) => payload,
Err(err) => {
error!("{}", err.to_string());
Payload::Rust(Err(err))
Expand Down