Skip to content

Commit

Permalink
fix: hide multivm log warnings and traces (#310)
Browse files Browse the repository at this point in the history
* fix: remove multivm logs

* remove println

* fix: lint
  • Loading branch information
MexicanAce authored Jul 3, 2024
1 parent a0827eb commit b591b36
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion 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 Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "era_test_node"
version = "0.1.0-alpha.24"
version = "0.1.0-alpha.25"
edition = "2018"
authors = ["The Matter Labs Team <hello@matterlabs.dev>"]
homepage = "https://zksync.io/"
Expand Down
7 changes: 2 additions & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,8 @@ async fn main() -> anyhow::Result<()> {
let log_file = File::create(config.log.file_path)?;

// Initialize the tracing subscriber
let observability = Observability::init(
vec!["era_test_node".into(), "multivm".into()],
log_level_filter,
log_file,
)?;
let observability =
Observability::init(vec!["era_test_node".into()], log_level_filter, log_file)?;

// Use `Command::Run` as default.
let command = opt.command.as_ref().unwrap_or(&Command::Run);
Expand Down
5 changes: 4 additions & 1 deletion src/observability.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,10 @@ impl Observability {
log_file: File,
) -> Result<Self, anyhow::Error> {
let joined_filter = binary_names
.join(format!("={},", log_level_filter.to_string().to_lowercase()).as_str());
.iter()
.map(|x| format!("{}={}", x, log_level_filter.to_string().to_lowercase()))
.collect::<Vec<String>>()
.join(",");
let filter = Self::parse_filter(&joined_filter)?;
let (filter, reload_handle) = reload::Layer::new(filter);

Expand Down

0 comments on commit b591b36

Please sign in to comment.