serde-xml-rs icon indicating copy to clipboard operation
serde-xml-rs copied to clipboard

debug! to trace!

Open evensolberg opened this issue 2 years ago • 1 comments

I am using this crate indirectly through the tcx crate, and when I try to debug! things in my application, I also get debug messages from this crate, which floods my log.

I'm happy to receive the logs from this crate at a trace! level, but I think debug! may interfere too much. Would it be possible to either lower the logging level from this crate to trace!, or in some way remove the logging information when the crate is being used elsewhere?

Come to think of it, I could probably filter on the module in my own application.

evensolberg avatar Oct 15 '21 15:10 evensolberg

OK, I was able to filter on the module using filter_module("serde_xml_rs::de", LevelFilter::Off) ... My request to lower the logging level still stands, though. 😄

evensolberg avatar Oct 15 '21 16:10 evensolberg