Skip to main content

DEFAULT_LOG_FILTER

Constant DEFAULT_LOG_FILTER 

Source
pub const DEFAULT_LOG_FILTER: &str = "info,hyper=warn,hyper_util=warn,h2=warn,mio=warn";
Expand description

Filter used when RUST_LOG is unset.

info for this project’s own crates, and the HTTP stack’s internals turned down. hyper and h2 narrate every frame at DEBUG; leaving them on turns the provisioning log – the thing this server exists to show – into a minority of the output.

tower is deliberately not silenced here even though it is noisy in the same way. EnvFilter matches a target by string prefix, so a tower=warn directive also silences tower_http::trace, which is where this crate’s request log comes from.