1
0
mirror of https://github.com/GitJournal/GitJournal.git synced 2025-07-13 22:53:45 +08:00

Log an exception properly

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

@ -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)) {