Re:Show HN: Pg_replicate – Build Postgres replication applic...
by hermanradtke on Saturday August 10, 2024 @08:56PM
(#41213274)
I too consider this a footgun.
Most applications will have something like
tracing_subscriber::registry()
.with(
tracing_subscriber::EnvFilter::try_from_default_env()
.unwrap_or_else(|_| "my_app=info".into()),
)
.with(tracing_subscriber::fmt::layer())
.init();
in the `main.rs` which will default the tracing if RUST_LOG env var is not set.
Might be a good idea to have it documented or have the default level set to info for the stdout example.
Maybe this is common Rust knowledge and I just don't know what I'm doing though.