From fcc1e49187f56079bac38000ac59f4c731ad504a Mon Sep 17 00:00:00 2001 From: Bob Liu Date: Tue, 15 Oct 2024 15:09:27 +0800 Subject: [PATCH] fix: in proposer duties table primary key should not be the public key --- crates/cmd/Cargo.toml | 2 +- crates/cmd/src/main.rs | 3 ++- ...1__proposer_duties_fix.sql => V22__proposer_duties_fix.sql} | 0 3 files changed, 3 insertions(+), 2 deletions(-) rename crates/database/src/postgres/migrations/{V21__proposer_duties_fix.sql => V22__proposer_duties_fix.sql} (100%) diff --git a/crates/cmd/Cargo.toml b/crates/cmd/Cargo.toml index 46963819..0bdad0a5 100644 --- a/crates/cmd/Cargo.toml +++ b/crates/cmd/Cargo.toml @@ -12,7 +12,7 @@ helix-common.workspace = true tokio.workspace = true tracing.workspace = true -tracing-subscriber.workspace = true +tracing-subscriber = { workspace = true, features = ["env-filter"] } tracing-appender.workspace = true num_cpus.workspace = true \ No newline at end of file diff --git a/crates/cmd/src/main.rs b/crates/cmd/src/main.rs index 3ccd975a..d9b72830 100644 --- a/crates/cmd/src/main.rs +++ b/crates/cmd/src/main.rs @@ -15,7 +15,8 @@ async fn run() { match &config.logging { LoggingConfig::Console => { - tracing_subscriber::fmt().init(); + let filter_layer = tracing_subscriber::EnvFilter::from_default_env(); + tracing_subscriber::fmt().with_env_filter(filter_layer).init(); } LoggingConfig::File { dir_path, file_name } => { let file_appender = tracing_appender::rolling::daily(dir_path, file_name); diff --git a/crates/database/src/postgres/migrations/V21__proposer_duties_fix.sql b/crates/database/src/postgres/migrations/V22__proposer_duties_fix.sql similarity index 100% rename from crates/database/src/postgres/migrations/V21__proposer_duties_fix.sql rename to crates/database/src/postgres/migrations/V22__proposer_duties_fix.sql