Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: don't fail crashpad startup on invalid DSN #1059

Merged
merged 8 commits into from
Oct 24, 2024

Conversation

JoshuaMoelans
Copy link
Member

@JoshuaMoelans JoshuaMoelans commented Oct 24, 2024

fixes #1056

When leaving the DSN empty, the crashpad handler wouldn't start. This PR fixes this by warning the user about the empty DSN and not failing the initialization anymore.

Copy link

codecov bot commented Oct 24, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.

Project coverage is 82.62%. Comparing base (b555a97) to head (359960d).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1059      +/-   ##
==========================================
+ Coverage   81.80%   82.62%   +0.82%     
==========================================
  Files          53       53              
  Lines        6363     7656    +1293     
  Branches     1207     1208       +1     
==========================================
+ Hits         5205     6326    +1121     
- Misses       1046     1216     +170     
- Partials      112      114       +2     

Copy link
Collaborator

@supervacuus supervacuus left a comment

Choose a reason for hiding this comment

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

LGTM.

src/backends/sentry_backend_crashpad.cpp Outdated Show resolved Hide resolved
src/backends/sentry_backend_crashpad.cpp Outdated Show resolved Hide resolved
JoshuaMoelans and others added 4 commits October 24, 2024 12:18
Co-authored-by: Mischan Toosarani-Hausberger <mischan@abovevacant.com>
@supervacuus
Copy link
Collaborator

Btw, this should end up in the change log as a fix.

@supervacuus supervacuus changed the title Fix/allow empty dsn joshua fix: don't fail crashpad startup on invalid DSN Oct 24, 2024
@JoshuaMoelans JoshuaMoelans merged commit 0dbf198 into master Oct 24, 2024
24 checks passed
@JoshuaMoelans JoshuaMoelans deleted the fix/allow_empty_dsn_Joshua branch October 24, 2024 11:34
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.

Wrong documentation for 'dsn' option in Native SDK
2 participants