From ff275ea175126d907e5cfaca138f9923d59152cb Mon Sep 17 00:00:00 2001 From: PyKen Date: Wed, 22 Nov 2023 12:55:51 +0900 Subject: [PATCH] chore(mobile): Add log when saving asset (#5259) --- .../modules/asset_viewer/services/image_viewer.service.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/modules/asset_viewer/services/image_viewer.service.dart b/mobile/lib/modules/asset_viewer/services/image_viewer.service.dart index 3a356c840..862dcfea1 100644 --- a/mobile/lib/modules/asset_viewer/services/image_viewer.service.dart +++ b/mobile/lib/modules/asset_viewer/services/image_viewer.service.dart @@ -84,8 +84,8 @@ class ImageViewerService { } return entity != null; } - } catch (e) { - debugPrint("Error saving file $e"); + } catch (error, stack) { + _log.severe("Error saving file ${error.toString()}", error, stack); return false; } }