Open louis030195 opened 7 months ago
I had the same issue with other libraries and my workaround is to configure the log library to filter some kind of messages.
I use fern https://docs.rs/fern/latest/fern/struct.Dispatch.html#method.level_for and with this you can set a custom level for lopdf::document
I have the same problem so I always put lopdf=off
in my env filter.
I'm not very experienced with logging, but if I understand the docs of log
correctly, it is not the libraries (lopdf's) job to filter the logs.
This job falls to the logging implementation, which in your case is probably env_logger
.
Setting RUST_LOG=info,lopdf=warn
or even RUST_LOG=info,lopdf=off
should filter/disable any logging from lopdf.
Maybe we could also lower the log level in this particular instance from info
to debug
, IMO it isn't that interesting to know which encoding was used, especially without even knowing in which object.
Hey, I'm using lopdf in https://github.com/stellar-amenities/assistants and it's polluting my logs with thousands of:
Any recommendation to reduce verbosity?
I saw
Not sure what's the best practice here with the info