From 84c67a08db0b01ac47a166133906696fa7cdbab6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Mon, 28 Sep 2020 13:05:09 +0200 Subject: [PATCH] Log an exception properly --- lib/state_container.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/state_container.dart b/lib/state_container.dart index 969e51bd..7bb03313 100644 --- a/lib/state_container.dart +++ b/lib/state_container.dart @@ -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)) {