π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: move time logger to top
Prateek Sunal64d04ca22df3
diff --git a/mobile/lib/utils/bg_task_utils.dart b/mobile/lib/utils/bg_task_utils.dartindex 0fef596ac0..df32b1ab96 100644--- a/mobile/lib/utils/bg_task_utils.dart+++ b/mobile/lib/utils/bg_task_utils.dart@@ -13,14 +13,13 @@ import "package:workmanager/workmanager.dart" as workmanager;@pragma('vm:entry-point')void callbackDispatcher() {workmanager.Workmanager().executeTask((taskName, inputData) async {+ final TimeLogger tlog = TimeLogger();Future<bool> result = Future.error("Task didn't run");final prefs = await SharedPreferences.getInstance();await runWithLogs(() async {try {- final TimeLogger tlog = TimeLogger();-BgTaskUtils.$.info('Task started $tlog');await runBackgroundTask(taskName, tlog).timeout(Platform.isIOS ? kBGTaskTimeout : const Duration(hours: 1),