RReverser / serde-xml-rs

xml-rs based deserializer for Serde (compatible with 1.0+)
https://crates.io/crates/serde-xml-rs
MIT License
269 stars 90 forks source link

debug! to trace! #166

Open evensolberg opened 2 years ago

evensolberg commented 2 years ago

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 commented 2 years ago

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. 😄