elichai / log-derive

A procedural macro for auto logging output of functions
https://docs.rs/log-derive
Apache License 2.0
189 stars 12 forks source link

Error-only logging for non-`Debug` Ok in Result. #15

Closed vi closed 5 years ago

vi commented 5 years ago

Sometimes (e.g. when the result is a trait object), Debug is not available.

For this there can be a variant of log-derive that only logs errors, without successes.

vi commented 5 years ago

Looks like a documentation issue. I tried only specifying err= without ok= and it worked.

elichai commented 5 years ago

Documentation PRs are more than welcome :)