Commit 1b75ec0
Catch specific exception types in XunitLoggerProvider
Address code review feedback by catching specific exception types
(InvalidOperationException and NullReferenceException) instead of
catching all exceptions. This helps distinguish between expected
disposal-related exceptions and genuine errors.
Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>1 parent 7564073 commit 1b75ec0
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
46 | 51 | | |
47 | 52 | | |
48 | 53 | | |
| |||
0 commit comments