Skip to content

Conversation

@bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Nov 13, 2024

This was an attempt to fix an unspecified (now forgotten) compile-error that had to do with the order or arguments.
Update: Cannot reproduce this anymore.

#skip-changelog

@bitsandfoxes bitsandfoxes merged commit 3649f0a into main Nov 13, 2024
@bitsandfoxes bitsandfoxes deleted the fix/logging branch November 13, 2024 12:35
catch (EntryPointNotFoundException e)
{
Logger?.LogError(e, "Native dependency not found. Did you delete sentry.dll or move files around?");
Logger?.LogError("Native dependency not found. Did you delete sentry.dll or move files around?", e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this right? Usually last argument is object[] so it expects a {0} in the string.
The proper logging API has the exception as the first argument

@bruno-garcia
Copy link
Member

What did this PR fix? it's not clear from the title or the description

{
Logger?
.LogError(e, "Sentry native initialization failed - native crashes are not captured.");
Logger?.LogError("Sentry native initialization failed - native crashes are not captured.", e);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same concern I wrote below

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants