Skip to content

Commit

Permalink
always log performance stats in debug builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Codel1417 committed Jan 12, 2025
1 parent 572a40d commit 81b655e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Future<void> initMainApp() async {
}

Future<void> startSentryApp(Widget child) async {
if (kDebugMode || const String.fromEnvironment('SENTRY_DSN', defaultValue: "").isEmpty) {
if (const String.fromEnvironment('SENTRY_DSN', defaultValue: "").isEmpty) {
runApp(child);
}
mainLogger.fine("Init Sentry");
Expand All @@ -110,8 +110,8 @@ Future<void> startSentryApp(Widget child) async {
..debug = kDebugMode
..diagnosticLevel = SentryLevel.info
..environment = environment
..tracesSampleRate = dynamicConfigInfo.sentryTraces
..profilesSampleRate = dynamicConfigInfo.sentryProfiles
..tracesSampleRate = kDebugMode ? 1 : dynamicConfigInfo.sentryTraces
..profilesSampleRate = kDebugMode ? 1 : dynamicConfigInfo.sentryProfiles
..beforeSend = beforeSend
..reportPackages = false
..attachScreenshot = true
Expand Down

0 comments on commit 81b655e

Please sign in to comment.