Serilog.Exceptions
Serilog.Exceptions copied to clipboard
WithDestructuringDepth doesn't stop destructions
Describe the bug
WithDestructuringDepth(2) Suppose stop destruction of exception if it has issue like DbUpdateException from EF Core
Issue is it stops to print Self Log but memory still eating by infinite destructions
Steps to reproduce
- Set WithDestructuringDepth
- Raise DBUpdateException from EF Core
- Memory start eating even if DestructuringDepth stop SelfLog
Expected behaviour
WithDestructuringDepth should stop exception destructions too
can u submit a Pull Request with a failing unit test