From e96888d2c9a29c0241947e77d4e0e797f3eadac6 Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Mon, 12 May 2025 14:51:38 +0530 Subject: [PATCH] Reduce ffprobe log noise in debugMode --- mobile/lib/utils/exif_util.dart | 1 + mobile/lib/utils/ml_util.dart | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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 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> 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