Skip to content

Commit

Permalink
src: lib: logger: Reduce onvif libs verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Oct 1, 2024
1 parent c70603b commit d7e7af8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/lib/logger/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ pub fn init() {
})
// Hyper is used for http request by our thread leak test
// And it's pretty verbose when it's on
.add_directive("hyper=off".parse().unwrap());
.add_directive("hyper=off".parse().unwrap())
// Reducing onvif-related libs verbosity
.add_directive("yaserde=off".parse().unwrap())
.add_directive("ws_discovery=off".parse().unwrap())
.add_directive("onvif::discovery=off".parse().unwrap());

let console_layer = fmt::Layer::new()
.with_writer(std::io::stdout)
.with_ansi(true)
Expand Down

0 comments on commit d7e7af8

Please sign in to comment.