mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-15 07:56:11 +08:00
Log an exception properly
This commit is contained in:
@ -129,7 +129,7 @@ class StateContainer with ChangeNotifier {
|
|||||||
appState.numChanges = 0;
|
appState.numChanges = 0;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
} catch (e, stacktrace) {
|
} catch (e, stacktrace) {
|
||||||
Log.d("Failed to Sync");
|
Log.e("Failed to Sync", ex: e, stacktrace: stacktrace);
|
||||||
appState.syncStatus = SyncStatus.Error;
|
appState.syncStatus = SyncStatus.Error;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
if (shouldLogGitException(e)) {
|
if (shouldLogGitException(e)) {
|
||||||
|
Reference in New Issue
Block a user