Skip to content

Commit

Permalink
remove debug string
Browse files Browse the repository at this point in the history
  • Loading branch information
denrase committed Feb 25, 2025
1 parent a36aa30 commit 89824fc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions flutter/lib/src/sentry_privacy_options.dart
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,6 @@ class SentryPrivacyOptions {
final regexp = RegExp('video|webview|password|pinput|camera|chart',
caseSensitive: false);

// Note: the following line just makes sure if the option is renamed,
// someone will notice that there is a string that needs updating too.
SentryFlutterOptions().privacy;
final optionsName = 'options.privacy';

rules.add(SentryMaskingCustomRule<Widget>(
callback: (Element element, Widget widget) {
final type = widget.runtimeType.toString();
Expand All @@ -93,9 +88,9 @@ class SentryPrivacyOptions {
'widget comes from a third-party plugin or your code, Sentry '
"doesn't recognize it and can't reliably mask it in release "
'builds (due to obfuscation). '
'Please mask it explicitly using $optionsName.mask<$type>(). '
'Please mask it explicitly using options.privacy.mask<$type>(). '
'If you want to silence this warning and keep the widget '
'visible in captures, you can use $optionsName.unmask<$type>(). '
'visible in captures, you can use options.privacy.unmask<$type>(). '
'Note: the RegExp matched is: $regexp (case insensitive).');
}
return SentryMaskingDecision.continueProcessing;
Expand Down

0 comments on commit 89824fc

Please sign in to comment.