fix logging
This commit is contained in:
parent
fcb51f9f71
commit
2474130147
2 changed files with 2 additions and 3 deletions
|
@ -46,7 +46,7 @@ class _VideoWidgetState extends State<VideoWidget> {
|
||||||
} else if (widget.file.isSharedMediaToAppSandbox()) {
|
} else if (widget.file.isSharedMediaToAppSandbox()) {
|
||||||
final localFile = io.File(getSharedMediaFilePath(widget.file));
|
final localFile = io.File(getSharedMediaFilePath(widget.file));
|
||||||
if (localFile.existsSync()) {
|
if (localFile.existsSync()) {
|
||||||
_logger.info("loading from local source");
|
_logger.fine("loading from app cache");
|
||||||
_setVideoPlayerController(file: localFile);
|
_setVideoPlayerController(file: localFile);
|
||||||
} else if (widget.file.uploadedFileID != null) {
|
} else if (widget.file.uploadedFileID != null) {
|
||||||
_loadNetworkVideo();
|
_loadNetworkVideo();
|
||||||
|
@ -72,7 +72,6 @@ class _VideoWidgetState extends State<VideoWidget> {
|
||||||
progressCallback: (count, total) {
|
progressCallback: (count, total) {
|
||||||
if (mounted) {
|
if (mounted) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_logger.info("calling set state");
|
|
||||||
_progress = count / total;
|
_progress = count / total;
|
||||||
if (_progress == 1) {
|
if (_progress == 1) {
|
||||||
showToast("decrypting video...", toastLength: Toast.LENGTH_SHORT);
|
showToast("decrypting video...", toastLength: Toast.LENGTH_SHORT);
|
||||||
|
|
|
@ -148,7 +148,7 @@ Future<MediaUploadData> _getMediaUploadDataFromAppCache(ente.File file) async {
|
||||||
} catch (e, s) {
|
} catch (e, s) {
|
||||||
_logger.severe("failed to generate thumbnail", e, s);
|
_logger.severe("failed to generate thumbnail", e, s);
|
||||||
throw InvalidFileError(
|
throw InvalidFileError(
|
||||||
"thumbnail generated failed for fileType: ${file.fileType.toString()}");
|
"thumbnail generation failed for fileType: ${file.fileType.toString()}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue