Log an exception properly

This commit is contained in:
Vishesh Handa
2020-09-28 13:05:09 +02:00
parent 34cdd21026
commit 84c67a08db

View File

@ -129,7 +129,7 @@ class StateContainer with ChangeNotifier {
appState.numChanges = 0;
notifyListeners();
} catch (e, stacktrace) {
Log.d("Failed to Sync");
Log.e("Failed to Sync", ex: e, stacktrace: stacktrace);
appState.syncStatus = SyncStatus.Error;
notifyListeners();
if (shouldLogGitException(e)) {