From 0d4f1ec3699d36b807013e6bda4926221cc4e7dc Mon Sep 17 00:00:00 2001 From: ryzendigo <48058157+ryzendigo@users.noreply.github.com> Date: Sat, 9 May 2026 22:35:38 +0800 Subject: [PATCH] fix: format placeholder in remove_empty_directories debug log (#23147) The literal string ``"Removed {count} empty directories"`` was passed to ``logger.debug`` without an ``f`` prefix, so the ``{count}`` placeholder is emitted verbatim instead of being substituted. Convert the call to an f-string so the count is logged. --- frigate/util/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frigate/util/media.py b/frigate/util/media.py index 38f569806..31374c596 100644 --- a/frigate/util/media.py +++ b/frigate/util/media.py @@ -94,7 +94,7 @@ def remove_empty_directories(root: Path, paths: Iterable[Path]) -> None: paths = parents - logger.debug("Removed {count} empty directories") + logger.debug(f"Removed {count} empty directories") def sync_recordings(