mirror of
				https://github.com/immich-app/immich.git
				synced 2025-11-03 19:29:32 -05:00 
			
		
		
		
	chore(mobile): add log to get file name for corrupted asset (#8527)
* chore(mobile): add log to get file name for corrupted asset * add date
This commit is contained in:
		
							parent
							
								
									19fafd8c10
								
							
						
					
					
						commit
						ec7015be88
					
				@ -17,9 +17,6 @@ PODS:
 | 
				
			|||||||
  - fluttertoast (0.0.2):
 | 
					  - fluttertoast (0.0.2):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
    - Toast
 | 
					    - Toast
 | 
				
			||||||
  - FMDB (2.7.5):
 | 
					 | 
				
			||||||
    - FMDB/standard (= 2.7.5)
 | 
					 | 
				
			||||||
  - FMDB/standard (2.7.5)
 | 
					 | 
				
			||||||
  - geolocator_apple (1.2.0):
 | 
					  - geolocator_apple (1.2.0):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
  - image_picker_ios (0.0.1):
 | 
					  - image_picker_ios (0.0.1):
 | 
				
			||||||
@ -39,7 +36,7 @@ PODS:
 | 
				
			|||||||
    - FlutterMacOS
 | 
					    - FlutterMacOS
 | 
				
			||||||
  - path_provider_ios (0.0.1):
 | 
					  - path_provider_ios (0.0.1):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
  - permission_handler_apple (9.1.1):
 | 
					  - permission_handler_apple (9.3.0):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
  - photo_manager (2.0.0):
 | 
					  - photo_manager (2.0.0):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
@ -53,7 +50,7 @@ PODS:
 | 
				
			|||||||
    - FlutterMacOS
 | 
					    - FlutterMacOS
 | 
				
			||||||
  - sqflite (0.0.3):
 | 
					  - sqflite (0.0.3):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
    - FMDB (>= 2.7.5)
 | 
					    - FlutterMacOS
 | 
				
			||||||
  - Toast (4.0.0)
 | 
					  - Toast (4.0.0)
 | 
				
			||||||
  - url_launcher_ios (0.0.1):
 | 
					  - url_launcher_ios (0.0.1):
 | 
				
			||||||
    - Flutter
 | 
					    - Flutter
 | 
				
			||||||
@ -84,14 +81,13 @@ DEPENDENCIES:
 | 
				
			|||||||
  - photo_manager (from `.symlinks/plugins/photo_manager/ios`)
 | 
					  - photo_manager (from `.symlinks/plugins/photo_manager/ios`)
 | 
				
			||||||
  - share_plus (from `.symlinks/plugins/share_plus/ios`)
 | 
					  - share_plus (from `.symlinks/plugins/share_plus/ios`)
 | 
				
			||||||
  - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
 | 
					  - shared_preferences_foundation (from `.symlinks/plugins/shared_preferences_foundation/darwin`)
 | 
				
			||||||
  - sqflite (from `.symlinks/plugins/sqflite/ios`)
 | 
					  - sqflite (from `.symlinks/plugins/sqflite/darwin`)
 | 
				
			||||||
  - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
 | 
					  - url_launcher_ios (from `.symlinks/plugins/url_launcher_ios/ios`)
 | 
				
			||||||
  - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
 | 
					  - video_player_avfoundation (from `.symlinks/plugins/video_player_avfoundation/darwin`)
 | 
				
			||||||
  - wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
 | 
					  - wakelock_plus (from `.symlinks/plugins/wakelock_plus/ios`)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
SPEC REPOS:
 | 
					SPEC REPOS:
 | 
				
			||||||
  trunk:
 | 
					  trunk:
 | 
				
			||||||
    - FMDB
 | 
					 | 
				
			||||||
    - MapLibre
 | 
					    - MapLibre
 | 
				
			||||||
    - ReachabilitySwift
 | 
					    - ReachabilitySwift
 | 
				
			||||||
    - SAMKeychain
 | 
					    - SAMKeychain
 | 
				
			||||||
@ -139,7 +135,7 @@ EXTERNAL SOURCES:
 | 
				
			|||||||
  shared_preferences_foundation:
 | 
					  shared_preferences_foundation:
 | 
				
			||||||
    :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
 | 
					    :path: ".symlinks/plugins/shared_preferences_foundation/darwin"
 | 
				
			||||||
  sqflite:
 | 
					  sqflite:
 | 
				
			||||||
    :path: ".symlinks/plugins/sqflite/ios"
 | 
					    :path: ".symlinks/plugins/sqflite/darwin"
 | 
				
			||||||
  url_launcher_ios:
 | 
					  url_launcher_ios:
 | 
				
			||||||
    :path: ".symlinks/plugins/url_launcher_ios/ios"
 | 
					    :path: ".symlinks/plugins/url_launcher_ios/ios"
 | 
				
			||||||
  video_player_avfoundation:
 | 
					  video_player_avfoundation:
 | 
				
			||||||
@ -156,23 +152,22 @@ SPEC CHECKSUMS:
 | 
				
			|||||||
  flutter_udid: a2482c67a61b9c806ef59dd82ed8d007f1b7ac04
 | 
					  flutter_udid: a2482c67a61b9c806ef59dd82ed8d007f1b7ac04
 | 
				
			||||||
  flutter_web_auth: c25208760459cec375a3c39f6a8759165ca0fa4d
 | 
					  flutter_web_auth: c25208760459cec375a3c39f6a8759165ca0fa4d
 | 
				
			||||||
  fluttertoast: 31b00dabfa7fb7bacd9e7dbee580d7a2ff4bf265
 | 
					  fluttertoast: 31b00dabfa7fb7bacd9e7dbee580d7a2ff4bf265
 | 
				
			||||||
  FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a
 | 
					 | 
				
			||||||
  geolocator_apple: 9157311f654584b9bb72686c55fc02a97b73f461
 | 
					  geolocator_apple: 9157311f654584b9bb72686c55fc02a97b73f461
 | 
				
			||||||
  image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
 | 
					  image_picker_ios: 99dfe1854b4fa34d0364e74a78448a0151025425
 | 
				
			||||||
  integration_test: 13825b8a9334a850581300559b8839134b124670
 | 
					  integration_test: 13825b8a9334a850581300559b8839134b124670
 | 
				
			||||||
  isar_flutter_libs: b69f437aeab9c521821c3f376198c4371fa21073
 | 
					  isar_flutter_libs: b69f437aeab9c521821c3f376198c4371fa21073
 | 
				
			||||||
  MapLibre: 620fc933c1d6029b33738c905c1490d024e5d4ef
 | 
					  MapLibre: 620fc933c1d6029b33738c905c1490d024e5d4ef
 | 
				
			||||||
  maplibre_gl: a2efec727dd340e4c65e26d2b03b584f14881fd9
 | 
					  maplibre_gl: a2efec727dd340e4c65e26d2b03b584f14881fd9
 | 
				
			||||||
  package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
 | 
					  package_info_plus: 115f4ad11e0698c8c1c5d8a689390df880f47e85
 | 
				
			||||||
  path_provider_foundation: 29f094ae23ebbca9d3d0cec13889cd9060c0e943
 | 
					  path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c
 | 
				
			||||||
  path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
 | 
					  path_provider_ios: 14f3d2fd28c4fdb42f44e0f751d12861c43cee02
 | 
				
			||||||
  permission_handler_apple: e76247795d700c14ea09e3a2d8855d41ee80a2e6
 | 
					  permission_handler_apple: 036b856153a2b1f61f21030ff725f3e6fece2b78
 | 
				
			||||||
  photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604
 | 
					  photo_manager: 4f6810b7dfc4feb03b461ac1a70dacf91fba7604
 | 
				
			||||||
  ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
 | 
					  ReachabilitySwift: 985039c6f7b23a1da463388634119492ff86c825
 | 
				
			||||||
  SAMKeychain: 483e1c9f32984d50ca961e26818a534283b4cd5c
 | 
					  SAMKeychain: 483e1c9f32984d50ca961e26818a534283b4cd5c
 | 
				
			||||||
  share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
 | 
					  share_plus: c3fef564749587fc939ef86ffb283ceac0baf9f5
 | 
				
			||||||
  shared_preferences_foundation: 5b919d13b803cadd15ed2dc053125c68730e5126
 | 
					  shared_preferences_foundation: b4c3b4cddf1c21f02770737f147a3f5da9d39695
 | 
				
			||||||
  sqflite: 31f7eba61e3074736dff8807a9b41581e4f7f15a
 | 
					  sqflite: 673a0e54cc04b7d6dba8d24fb8095b31c3a99eec
 | 
				
			||||||
  Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
 | 
					  Toast: 91b396c56ee72a5790816f40d3a94dd357abc196
 | 
				
			||||||
  url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
 | 
					  url_launcher_ios: bbd758c6e7f9fd7b5b1d4cde34d2b95fcce5e812
 | 
				
			||||||
  video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579
 | 
					  video_player_avfoundation: 02011213dab73ae3687df27ce441fbbcc82b5579
 | 
				
			||||||
 | 
				
			|||||||
@ -56,8 +56,16 @@ class HashService {
 | 
				
			|||||||
      }
 | 
					      }
 | 
				
			||||||
      final file = await assetEntities[i].originFile;
 | 
					      final file = await assetEntities[i].originFile;
 | 
				
			||||||
      if (file == null) {
 | 
					      if (file == null) {
 | 
				
			||||||
 | 
					        final fileName = await assetEntities[i].titleAsync.catchError((error) {
 | 
				
			||||||
 | 
					          _log.warning(
 | 
				
			||||||
 | 
					            "Failed to get title for asset ${assetEntities[i].id}",
 | 
				
			||||||
 | 
					          );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					          return "";
 | 
				
			||||||
 | 
					        });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        _log.warning(
 | 
					        _log.warning(
 | 
				
			||||||
          "Failed to get file for asset ${assetEntities[i].id}, skipping",
 | 
					          "Failed to get file for asset ${assetEntities[i].id}, name: $fileName, created on: ${assetEntities[i].createDateTime}, skipping",
 | 
				
			||||||
        );
 | 
					        );
 | 
				
			||||||
        continue;
 | 
					        continue;
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user