Quiet some logs in debug mode

This commit is contained in:
asonix 2020-03-26 09:22:57 -05:00
parent 9c7c98a709
commit bcfe8b14a3

View file

@ -33,7 +33,10 @@ async fn main() -> Result<(), anyhow::Error> {
let config = Config::build()?; let config = Config::build()?;
if config.debug() { if config.debug() {
std::env::set_var("RUST_LOG", "debug,tokio_postgres=info") std::env::set_var(
"RUST_LOG",
"debug,tokio_postgres=info,h2=info,trust_dns_resolver=info,trust_dns_proto=info,rustls=info",
)
} else { } else {
std::env::set_var("RUST_LOG", "info") std::env::set_var("RUST_LOG", "info")
} }