mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-09-16 16:33:38 +08:00
logException: Also log to Sentry
This commit is contained in:
@ -3,6 +3,7 @@ import 'dart:io';
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_crashlytics/flutter_crashlytics.dart';
|
||||
import 'package:gitjournal/error_reporting.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:collection/collection.dart';
|
||||
|
||||
@ -110,7 +111,7 @@ class NotesCache {
|
||||
return json.decode(contents).cast<String>();
|
||||
} catch (ex, st) {
|
||||
Log.e("Exception - $ex for contents: $contents");
|
||||
await FlutterCrashlytics().logException(ex, st);
|
||||
await logException(ex, st);
|
||||
return [];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user