fix logging

This commit is contained in:
Neeraj Gupta 2021-09-20 17:57:12 +05:30
parent fcb51f9f71
commit 2474130147
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1
2 changed files with 2 additions and 3 deletions

View file

@ -46,7 +46,7 @@ class _VideoWidgetState extends State<VideoWidget> {
} else if (widget.file.isSharedMediaToAppSandbox()) {
final localFile = io.File(getSharedMediaFilePath(widget.file));
if (localFile.existsSync()) {
_logger.info("loading from local source");
_logger.fine("loading from app cache");
_setVideoPlayerController(file: localFile);
} else if (widget.file.uploadedFileID != null) {
_loadNetworkVideo();
@ -72,7 +72,6 @@ class _VideoWidgetState extends State<VideoWidget> {
progressCallback: (count, total) {
if (mounted) {
setState(() {
_logger.info("calling set state");
_progress = count / total;
if (_progress == 1) {
showToast("decrypting video...", toastLength: Toast.LENGTH_SHORT);

View file

@ -148,7 +148,7 @@ Future<MediaUploadData> _getMediaUploadDataFromAppCache(ente.File file) async {
} catch (e, s) {
_logger.severe("failed to generate thumbnail", e, s);
throw InvalidFileError(
"thumbnail generated failed for fileType: ${file.fileType.toString()}");
"thumbnail generation failed for fileType: ${file.fileType.toString()}");
}
}