Configure different sentry instance for debug builds
This commit is contained in:
parent
948a53f759
commit
f2dee27862
2 changed files with 5 additions and 1 deletions
|
@ -5,3 +5,5 @@ const int COMPRESSED_THUMBNAIL_RESOLUTION = 1080;
|
|||
const int THUMBNAIL_DATA_LIMIT = 100 * 1024;
|
||||
const String SENTRY_DSN =
|
||||
"https://93b8ea6f54f442dc8408ebccdff6fe7a@errors.ente.io/2";
|
||||
const String SENTRY_DEBUG_DSN =
|
||||
"https://b31c8af8384a4ce980509b8f592a67eb@errors.ente.io/3";
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
import 'dart:async';
|
||||
|
||||
import 'package:background_fetch/background_fetch.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:in_app_purchase/in_app_purchase.dart';
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
|
@ -25,7 +26,8 @@ void main() async {
|
|||
}
|
||||
|
||||
void _main() {
|
||||
final SentryClient sentry = new SentryClient(dsn: SENTRY_DSN);
|
||||
final SentryClient sentry =
|
||||
new SentryClient(dsn: kDebugMode ? SENTRY_DEBUG_DSN : SENTRY_DSN);
|
||||
|
||||
FlutterError.onError = (FlutterErrorDetails details) async {
|
||||
FlutterError.dumpErrorToConsole(details, forceReport: true);
|
||||
|
|
Loading…
Reference in a new issue