fix(mobile): no album thumbnail lead to no album selection shown and add global logs (#1841)

* fix(mobile): no album thumbnail lead to no album selection shown

* add more log info

* added global error handling

* better place to init logger

* get more log
This commit is contained in:
Alex 2023-02-23 00:36:17 -06:00 committed by GitHub
parent 98a8be82e2
commit a2549c5bbd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 112 additions and 88 deletions

View file

@ -77,7 +77,8 @@ class AssetService {
.map((e) => Asset.local(e, userId))
.toList(growable: false);
}
} catch (e) {
} catch (e, stackTrace) {
log.severe('Error while getting local assets', e, stackTrace);
debugPrint("Error [_getLocalAssets] ${e.toString()}");
}
return null;