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';
|
||||
|
||||
class InitSentryTask extends LaunchTask {
|
||||
@ -9,21 +5,24 @@ class InitSentryTask extends LaunchTask {
|
||||
|
||||
@override
|
||||
Future<void> initialize(LaunchContext context) async {
|
||||
const dsn = Env.sentryDsn;
|
||||
if (dsn.isEmpty) {
|
||||
Log.info('Sentry DSN is not set, skipping initialization');
|
||||
return;
|
||||
}
|
||||
// Disable sentry temporarily, it will cause the app unresponsive
|
||||
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(
|
||||
(options) {
|
||||
options.dsn = dsn;
|
||||
options.tracesSampleRate = 0.1;
|
||||
options.profilesSampleRate = 0.1;
|
||||
},
|
||||
);
|
||||
// Log.info('Initializing Sentry');
|
||||
|
||||
// await SentryFlutter.init(
|
||||
// (options) {
|
||||
// options.dsn = dsn;
|
||||
// options.tracesSampleRate = 0.1;
|
||||
// options.profilesSampleRate = 0.1;
|
||||
// },
|
||||
// );
|
||||
}
|
||||
|
||||
@override
|
||||
|
Loading…
Reference in New Issue
Block a user