Skip to content

feat: add option to set debug log level#1107

Merged
JoshuaMoelans merged 10 commits intomasterfrom
joshua/feat/init_output_level
Dec 19, 2024
Merged

feat: add option to set debug log level#1107
JoshuaMoelans merged 10 commits intomasterfrom
joshua/feat/init_output_level

Conversation

@JoshuaMoelans
Copy link
Copy Markdown
Member

@JoshuaMoelans JoshuaMoelans commented Dec 18, 2024

Fixes #888
Related to getsentry/sentry-cocoa#4467

The main goal is to allow for outputting just the warnings from sentry_init. To accommodate this, we introduce log levels as a way to control what level of output the user gets. We decided against splitting up these levels into init-only and global levels, since this doesn't seem like a necessary feature as of yet.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 18, 2024

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against ad4359e

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 61.29032% with 36 lines in your changes missing coverage. Please review.

Project coverage is 82.49%. Comparing base (19ba6d5) to head (ad4359e).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1107      +/-   ##
==========================================
- Coverage   82.57%   82.49%   -0.08%     
==========================================
  Files          53       53              
  Lines        7889     7896       +7     
  Branches     1232     1234       +2     
==========================================
  Hits         6514     6514              
- Misses       1263     1270       +7     
  Partials      112      112              

@JoshuaMoelans JoshuaMoelans changed the title feat: add log levels (WIP title) feat: add init and logger log levels Dec 18, 2024
@JoshuaMoelans JoshuaMoelans changed the title feat: add init and logger log levels feat: add sentry_init and global logger log levels Dec 18, 2024
@JoshuaMoelans JoshuaMoelans marked this pull request as ready for review December 18, 2024 15:31
Copy link
Copy Markdown
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.

I expected the macro name change to highlight a few inconsistencies.

A short sync might also be acceptable regarding the options interface.

@JoshuaMoelans JoshuaMoelans changed the title feat: add sentry_init and global logger log levels feat: add global logger log levels Dec 19, 2024
@JoshuaMoelans JoshuaMoelans changed the title feat: add global logger log levels feat: add option to set debug log level Dec 19, 2024
@JoshuaMoelans JoshuaMoelans merged commit b24b30c into master Dec 19, 2024
@JoshuaMoelans JoshuaMoelans deleted the joshua/feat/init_output_level branch December 19, 2024 14:27
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.

Add option to output warnings from sentry_init()

2 participants