Skip to content

Commit

Permalink
fix(log): define RUST_LOG=info by default (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
antiyro authored Nov 28, 2024
1 parent de271ba commit fdc39a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Next release

- fix(log): define RUST_LOG=info by default
- fix(tracing): RUST_LOG filtering support
- fix(fgw): fetch class
- feat: possibility of starting madara & kakarot-rpc in docker
Expand Down
3 changes: 2 additions & 1 deletion crates/client/analytics/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ use std::time::{Duration, SystemTime};
use time::{format_description, OffsetDateTime};
use tracing::field::{Field, Visit};
use tracing::Level;
use tracing_core::LevelFilter;
use tracing_opentelemetry::OpenTelemetryLayer;
use tracing_subscriber::layer::SubscriberExt as _;
use tracing_subscriber::util::SubscriberInitExt as _;
Expand All @@ -38,7 +39,7 @@ impl Analytics {

let tracing_subscriber = tracing_subscriber::registry()
.with(tracing_subscriber::fmt::layer().event_format(custom_formatter))
.with(EnvFilter::from_default_env());
.with(EnvFilter::builder().with_default_directive(LevelFilter::INFO.into()).from_env()?);

if self.collection_endpoint.is_none() {
tracing_subscriber.init();
Expand Down

0 comments on commit fdc39a6

Please sign in to comment.