Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Reduce error noise

Neeraj Gupta1a9e1d7d770a
diff --git a/mobile/lib/services/collections_service.dart b/mobile/lib/services/collections_service.dart
index 3631d00535..3510597bb1 100644
--- a/mobile/lib/services/collections_service.dart
+++ b/mobile/lib/services/collections_service.dart
@@ -729,7 +729,7 @@ class CollectionsService {
collection.setName(newName);
sync().ignore();
} catch (e, s) {
- _logger.severe("failed to rename collection", e, s);
+ _logger.warning("failed to rename collection", e, s);
rethrow;
}
}
diff --git a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index c62d1f7389..5edd31984a 100644
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@ -179,7 +179,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
setState(() {});
}
} catch (e, s) {
- _logger.severe("Failed to rename album", e, s);
+ _logger.warning("Failed to rename album", e, s);
rethrow;
}
},
@@ -610,7 +610,7 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
await dialog.hide();
Navigator.of(context).pop();
} catch (e, s) {
- _logger.severe("failed to trash collection", e, s);
+ _logger.warning("failed to trash collection", e, s);
await dialog.hide();
await showGenericErrorDialog(context: context, error: e);
}
diff --git a/mobile/lib/utils/file_uploader_util.dart b/mobile/lib/utils/file_uploader_util.dart
index 1455ee0e9b..833c55b30d 100644
--- a/mobile/lib/utils/file_uploader_util.dart
+++ b/mobile/lib/utils/file_uploader_util.dart
@@ -346,7 +346,7 @@ Future<MediaUploadData> _getMediaUploadDataFromAppCache(EnteFile file) async {
width: dimensions?['width'],
);
} catch (e, s) {
- _logger.severe("failed to generate thumbnail", e, s);
+ _logger.warning("failed to generate thumbnail", e, s);
throw InvalidFileError(
"thumbnail failed for appCache fileType: ${file.fileType.toString()}",
InvalidReason.thumbnailMissing,