Skip to content

Commit

Permalink
Bump to version 0.6.0 and swap out eprintln for event!
Browse files Browse the repository at this point in the history
  • Loading branch information
itsrainy authored and JakeChampion committed Jul 12, 2023
1 parent e9823b4 commit 4d77f86
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions cli/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "viceroy"
description = "Viceroy is a local testing daemon for Compute@Edge."
version = "0.5.2"
version = "0.6.0"
authors = ["Fastly"]
readme = "../README.md"
edition = "2021"
Expand Down Expand Up @@ -39,7 +39,7 @@ tokio = { workspace = true }
tracing = { workspace = true }
tracing-futures = { workspace = true }
tracing-subscriber = { version = "^0.3.16", features = ["env-filter", "fmt"] }
viceroy-lib = { path = "../lib", version = "^0.5.2" }
viceroy-lib = { path = "../lib", version = "0.6.0" }
wat = "^1.0.38"
wasi-common = { workspace = true }
wasmtime = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion cli/tests/trap-test/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "viceroy-lib"
version = "0.5.2"
version = "0.6.0"
description = "Viceroy implementation details."
authors = ["Fastly"]
edition = "2021"
Expand Down
14 changes: 10 additions & 4 deletions lib/src/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -429,11 +429,17 @@ impl ExecuteCtx {
.map_err(anyhow::Error::new)
.and_then(|output| profile.finish(std::io::BufWriter::new(output)))
{
eprintln!("failed writing profile at {}: {e:#}", path.display());
event!(
Level::ERROR,
"failed writing profile at {}: {e:#}",
path.display()
);
} else {
eprintln!();
eprintln!("Profile written to: {}", path.display());
eprintln!("View this profile at https://profiler.firefox.com/.");
event!(
Level::INFO,
"\nProfile written to: {}\nView this profile at https://profiler.firefox.com/.",
path.display()
);
}
}

Expand Down

0 comments on commit 4d77f86

Please sign in to comment.