Logging tweaks
This commit is contained in:
parent
50116462d2
commit
1e12d73c50
|
@ -367,7 +367,7 @@ preserves_schema::support::lazy_static! {
|
||||||
let credit =
|
let credit =
|
||||||
std::env::var("SYNDICATE_CREDIT").unwrap_or("100".to_owned())
|
std::env::var("SYNDICATE_CREDIT").unwrap_or("100".to_owned())
|
||||||
.parse::<i64>().expect("Valid SYNDICATE_CREDIT environment variable");
|
.parse::<i64>().expect("Valid SYNDICATE_CREDIT environment variable");
|
||||||
tracing::info!("Configured SYNDICATE_CREDIT = {}", credit);
|
tracing::debug!("Configured SYNDICATE_CREDIT = {}", credit);
|
||||||
credit
|
credit
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -61,7 +61,7 @@ pub fn convenient_logging() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
_ =>
|
_ =>
|
||||||
tracing_subscriber::filter::EnvFilter::try_from_default_env()?,
|
tracing_subscriber::filter::EnvFilter::try_from_default_env()?,
|
||||||
};
|
};
|
||||||
let subscriber = tracing_subscriber::FmtSubscriber::builder()
|
let subscriber = tracing_subscriber::fmt()
|
||||||
.with_ansi(true)
|
.with_ansi(true)
|
||||||
.with_max_level(tracing::Level::TRACE)
|
.with_max_level(tracing::Level::TRACE)
|
||||||
.with_env_filter(filter)
|
.with_env_filter(filter)
|
||||||
|
|
Loading…
Reference in New Issue