Browse Source

fix logging

Neeraj Gupta 3 years ago
parent
commit
2474130147
2 changed files with 2 additions and 3 deletions
  1. 1 2
      lib/ui/video_widget.dart
  2. 1 1
      lib/utils/file_uploader_util.dart

+ 1 - 2
lib/ui/video_widget.dart

@@ -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);

+ 1 - 1
lib/utils/file_uploader_util.dart

@@ -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()}");
   }
 }