edr
edr copied to clipboard
Try to avoid type erasure in `trait Logger`
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 thetrait Logger
in an extensible way; or - determine that it's impossible.