Sentry debug logging crashes because of argument confusion in LogError() methods #1090
Closed
4 of 17 tasks
Labels
Bug
Something isn't working
Please mark the type framework used:
Please mark the type of the runtime used:
Please mark the NuGet packages used:
The following
LogError()
call is broken, and causes the Sentry SDK to crash when triggered:sentry-dotnet/src/Sentry/Internal/BackgroundWorker.cs
Lines 147 to 152 in a9304a0
The problem is that the call resolves to the wrong overload of
LogError()
because of argument confusion in the overloads:sentry-dotnet/src/Sentry/Extensibility/DiagnosticLoggerExtensions.cs
Lines 75 to 81 in a9304a0
This overload only expects 2 formatting arguments, resulting in a
System.FormatException
further down the line because the message contains 3 placeholders.I noticed this related issue that points out the problem with the current design of the overloads: #699
The text was updated successfully, but these errors were encountered: