edr icon indicating copy to clipboard operation
edr copied to clipboard

Try to avoid type erasure in `trait Logger`

Open Wodann opened this issue 6 months ago • 0 comments

To decouple the error returned from the trait Logger from the Provider, we converted the error type to a Box<dyn std::error::Error>.

This change was made because it introduced a LoggerErrorT generic on the ProviderData which was bleeding into other traits/types.

Ideally, we'd avoid type erasure in error management. Since the original change, some refactors have happened that might make it possible to reintroduce the strongly typed Error.

Definition of Done Either

  • reintroduce the type Error on the trait Logger in an extensible way; or
  • determine that it's impossible.

Wodann avatar Aug 16 '24 17:08 Wodann