Serilog.Exceptions icon indicating copy to clipboard operation
Serilog.Exceptions copied to clipboard

WithDestructuringDepth doesn't stop destructions

Open knopa opened this issue 1 year ago • 1 comments

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

  1. Set WithDestructuringDepth
  2. Raise DBUpdateException from EF Core
  3. Memory start eating even if DestructuringDepth stop SelfLog

Expected behaviour

WithDestructuringDepth should stop exception destructions too

knopa avatar Nov 05 '24 06:11 knopa

can u submit a Pull Request with a failing unit test

SimonCropp avatar Feb 13 '25 05:02 SimonCropp