Actix remove logging messages

I have searched for Logger configurations that remove specific log messages but I can't find a solution to remove TRACE messages which fill my logs and making everything confused.

Is there a solution to use .wrap(/*Logging config*/)?

I'm talking about removing TRACE [actix_http::h1::dispatcher] messages.

Looking at the docs,

Actix is probably configured to use env_logger. So, from the above doc you probably have something like this, which may mistakenly enable TRACE logging:


Or maybe TRACE logging is enabled via the RUST_LOG environment variable described here:

Just guessing, I don't use any of this.

1 Like