mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: disable sentry
This commit is contained in:
parent
a14076125a
commit
5497f7f219
@ -1,7 +1,3 @@
|
|||||||
import 'package:appflowy/env/env.dart';
|
|
||||||
import 'package:appflowy_backend/log.dart';
|
|
||||||
import 'package:sentry_flutter/sentry_flutter.dart';
|
|
||||||
|
|
||||||
import '../startup.dart';
|
import '../startup.dart';
|
||||||
|
|
||||||
class InitSentryTask extends LaunchTask {
|
class InitSentryTask extends LaunchTask {
|
||||||
@ -9,21 +5,24 @@ class InitSentryTask extends LaunchTask {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Future<void> initialize(LaunchContext context) async {
|
Future<void> initialize(LaunchContext context) async {
|
||||||
const dsn = Env.sentryDsn;
|
// Disable sentry temporarily, it will cause the app unresponsive
|
||||||
if (dsn.isEmpty) {
|
return;
|
||||||
Log.info('Sentry DSN is not set, skipping initialization');
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Log.info('Initializing Sentry');
|
// const dsn = Env.sentryDsn;
|
||||||
|
// if (dsn.isEmpty) {
|
||||||
|
// Log.info('Sentry DSN is not set, skipping initialization');
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
|
||||||
await SentryFlutter.init(
|
// Log.info('Initializing Sentry');
|
||||||
(options) {
|
|
||||||
options.dsn = dsn;
|
// await SentryFlutter.init(
|
||||||
options.tracesSampleRate = 0.1;
|
// (options) {
|
||||||
options.profilesSampleRate = 0.1;
|
// options.dsn = dsn;
|
||||||
},
|
// options.tracesSampleRate = 0.1;
|
||||||
);
|
// options.profilesSampleRate = 0.1;
|
||||||
|
// },
|
||||||
|
// );
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
Reference in New Issue
Block a user