Skip to content

ref: diagnosticLevel #759

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

Merged
merged 2 commits into from
Jan 25, 2021
Merged

ref: diagnosticLevel #759

merged 2 commits into from
Jan 25, 2021

Conversation

bruno-garcia
Copy link
Member

To align with Dart and Java:

getsentry/sentry-docs#2945

@@ -326,7 +326,7 @@ public bool Debug
/// <remarks>
/// The <see cref="Debug"/> flag has to be switched on for this setting to take effect.
/// </remarks>
public SentryLevel DiagnosticsLevel { get; set; } = SentryLevel.Debug;
public SentryLevel DiagnosticLevel { get; set; } = SentryLevel.Debug;
Copy link
Contributor

Choose a reason for hiding this comment

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

M: why don't we deprecate DiagnosticsLevel and forwards getters/setters to DiagnosticLevel? so we won't break people's code, we could remove on the next version

Copy link
Member Author

@bruno-garcia bruno-garcia Jan 25, 2021

Choose a reason for hiding this comment

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

It's a major bump and a niche option (most ppl are not fiddling with this).

Since it's a major bump and it's an easy to discover fix (even looking at intellisense ppl can figure out) I rather we just do it (optimize for our maintainalibiliy in this case).

If this was a rename on BeforeSend for example I'd surely not do this same thing.

@bruno-garcia bruno-garcia merged commit 72c6aa6 into main Jan 25, 2021
@bruno-garcia bruno-garcia deleted the ref/diagnostic-level branch January 25, 2021 19:21
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.

None yet

3 participants