Skip to content

Commit

Permalink
Switch from env_logger to tracing
Browse files Browse the repository at this point in the history
Related PR: #689
  • Loading branch information
HCastano committed Aug 15, 2022
1 parent 58a1359 commit 7642b4e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wasm_opt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl WasmOptHandler {

let wasm_opt_path =
which.expect("we just checked if `which` returned an err; qed");
log::info!("Path to wasm-opt executable: {}", wasm_opt_path.display());
tracing::info!("Path to wasm-opt executable: {}", wasm_opt_path.display());

let version =
Self::check_wasm_opt_version_compatibility(wasm_opt_path.as_path())?;
Expand All @@ -98,7 +98,7 @@ impl WasmOptHandler {
let mut dest_optimized = dest_wasm.clone();
dest_optimized.set_file_name(format!("{}-opt.wasm", contract_artifact_name));

log::info!(
tracing::info!(
"Optimization level passed to wasm-opt: {}",
self.optimization_level
);
Expand All @@ -118,7 +118,7 @@ impl WasmOptHandler {
command.arg("-g");
}

log::info!("Invoking wasm-opt with {:?}", command);
tracing::info!("Invoking wasm-opt with {:?}", command);

let output = command.output().map_err(|err| {
anyhow::anyhow!(
Expand Down Expand Up @@ -232,7 +232,7 @@ impl WasmOptHandler {
)
})?;

log::info!(
tracing::info!(
"The wasm-opt version output is '{}', which was parsed to '{}'",
version_stdout,
version_number
Expand Down

0 comments on commit 7642b4e

Please sign in to comment.