π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix(bgtask): better logging
Prateek Sunal81965d0d369b
diff --git a/mobile/lib/utils/bg_task_utils.dart b/mobile/lib/utils/bg_task_utils.dartindex 58f550ba91..d7ed62c2b5 100644--- a/mobile/lib/utils/bg_task_utils.dart+++ b/mobile/lib/utils/bg_task_utils.dart@@ -16,9 +16,9 @@ void callbackDispatcher() {await runBackgroundTask(taskName);return true;} catch (e) {- BgTaskUtils.$.info('[WorkManager] task error: $e');+ BgTaskUtils.$.info('Task error: $e');await BgTaskUtils.killBGTask(taskName);- return false;+ return Future.error(e.toString());}});}@@ -73,9 +73,9 @@ class BgTaskUtils {backoffPolicy: workmanager.BackoffPolicy.linear,backoffPolicyDelay: const Duration(minutes: 15),);+ $.info("WorkManager configured");} catch (e) {$.warning("Failed to configure WorkManager: $e");}- $.info("WorkManager configured");}}