Skip to content

Commit

Permalink
Replace println with tracing [client] (FuelLabs#2765)
Browse files Browse the repository at this point in the history
Co-authored-by: Mohammad Fawaz <[email protected]>
Co-authored-by: Joshua Batty <[email protected]>
  • Loading branch information
3 people authored Sep 15, 2022
1 parent 542b435 commit 68351a5
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forc-plugins/forc-client/src/bin/deploy/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub async fn main() {
init_tracing_subscriber();
let command = DeployCommand::parse();
if let Err(err) = deploy(command).await {
eprintln!("Error: {:?}", err);
tracing::error!("Error: {:?}", err);
process::exit(1);
}
}
2 changes: 1 addition & 1 deletion forc-plugins/forc-client/src/bin/run/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ async fn main() {
init_tracing_subscriber();
let command = RunCommand::parse();
if let Err(err) = run(command).await {
eprintln!("Error: {:?}", err);
tracing::error!("Error: {:?}", err);
process::exit(1);
}
}
2 changes: 1 addition & 1 deletion forc-plugins/forc-client/src/ops/deploy/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ async fn create_signed_contract_tx(
witnesses,
);

println!("Tx id to sign {}", tx.id());
tracing::info!("Tx id to sign {}", tx.id());
Ok((tx, contract_id))
}

Expand Down
2 changes: 1 addition & 1 deletion forc-plugins/forc-client/src/ops/run/op.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ pub async fn run(command: RunCommand) -> Result<Vec<fuel_tx::Receipt>> {
);

if !command.unsigned {
println!("Tx id to sign {}", tx.id());
tracing::info!("Tx id to sign {}", tx.id());
let mut signature = String::new();
print!("Please provide the signature for this transaction:");
std::io::stdout().flush()?;
Expand Down

0 comments on commit 68351a5

Please sign in to comment.