π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Use normal logger for gated sync diagnostics
Prateek Sunale8e52af92554
diff --git a/mobile/apps/photos/lib/services/sync/local_sync_service.dart b/mobile/apps/photos/lib/services/sync/local_sync_service.dartindex 1c48c31272..a6ac921430 100644--- a/mobile/apps/photos/lib/services/sync/local_sync_service.dart+++ b/mobile/apps/photos/lib/services/sync/local_sync_service.dart@@ -14,7 +14,6 @@ import "package:photos/db/common/conflict_algo.dart";import "package:photos/db/device_files_db.dart";import "package:photos/db/file_updation_db.dart";import "package:photos/db/files_db.dart";-import "package:photos/extensions/logger_extension.dart";import "package:photos/events/backup_folders_updated_event.dart";import "package:photos/events/local_photos_updated_event.dart";import "package:photos/events/permission_granted_event.dart";@@ -256,7 +255,7 @@ class LocalSyncService {.take(3).map((file) => file.localID).toList();- _logger.internalInfo(+ _logger.info("syncAll recovery: ""newFiles=${localDiffResult.uniqueLocalFiles?.length ?? 0}, ""newMappings=$newMappingCount, "@@ -364,7 +363,7 @@ class LocalSyncService {if (shouldLogSyncRecovery && allFiles.length != files.length) {final sampleLocalIDs =allFiles.take(3).map((file) => file.localID).toList();- _logger.internalInfo(+ _logger.info("localSync partial materialization: ""from=$fromTime to=$toTime ""discovered=${allFiles.length} inserted=${files.length} "diff --git a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart b/mobile/apps/photos/lib/services/sync/remote_sync_service.dartindex 5a5608fa51..bcdf01cfd3 100644--- a/mobile/apps/photos/lib/services/sync/remote_sync_service.dart+++ b/mobile/apps/photos/lib/services/sync/remote_sync_service.dart@@ -10,7 +10,6 @@ import 'package:photos/core/event_bus.dart';import 'package:photos/db/device_files_db.dart';import 'package:photos/db/file_updation_db.dart';import 'package:photos/db/files_db.dart';-import 'package:photos/extensions/logger_extension.dart';import 'package:photos/events/backup_folders_updated_event.dart';import 'package:photos/events/collection_updated_event.dart';import 'package:photos/events/diff_sync_complete_event.dart';@@ -427,7 +426,7 @@ class RemoteSyncService {if (localIDsToSync.isEmpty) {if (shouldLogSyncRecovery && mappedCount == 0) {- _logger.internalInfo(+ _logger.info("[${deviceCollection.name}] upload-prep empty: ""pathID=${deviceCollection.id} mappedFromPath=0",);@@ -493,7 +492,7 @@ class RemoteSyncService {if (missingFileRows > 0) {final sample =localIDsToSync.difference(fileFoundForLocalIDs).take(3);- _logger.internalWarning(+ _logger.warning("[${deviceCollection.name}] upload-prep missing rows: ""pathID=${deviceCollection.id} ""mappedFromPath=$mappedCount "