Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Reduce ffprobe log noise in debugMode

Neeraj Guptae96888d2c9a2
diff --git a/mobile/lib/utils/exif_util.dart b/mobile/lib/utils/exif_util.dart
index 65a6eb21ea..086a11e28b 100644
--- a/mobile/lib/utils/exif_util.dart
+++ b/mobile/lib/utils/exif_util.dart
@@ -103,6 +103,7 @@ Future<FFProbeProps?> getVideoPropsAsync(File originalFile) async {
await session.getReturnCode();
final mediaInfo = await completer.future;
if (kDebugMode) {
+ log("uncomment below line to see ffprobe logs");
// logs.forEach((key, value) {
// log("log for session $key: $value", name: "FFprobeKit");
// });
diff --git a/mobile/lib/utils/ml_util.dart b/mobile/lib/utils/ml_util.dart
index 236c823965..b1d18307da 100644
--- a/mobile/lib/utils/ml_util.dart
+++ b/mobile/lib/utils/ml_util.dart
@@ -255,7 +255,7 @@ Stream<List<FileMLInstruction>> fetchEmbeddingsAndInstructions(
if (batchToYield.isNotEmpty) {
_logger.info("queueing indexing for ${batchToYield.length}");
yield batchToYield;
-}
+ }
}
// Returns a list of faces from the given remote fileML. null if the version is less than the current version