logException: Also log to Sentry

This commit is contained in:
Vishesh Handa
2020-04-17 09:41:36 +02:00
parent 98b8e92437
commit 6c47016c8b
4 changed files with 24 additions and 3 deletions

View File

@ -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 [];
}
}