From 96648b43a22c2d51737526e0b340a16c8b824aa1 Mon Sep 17 00:00:00 2001 From: ryzendigo Date: Sat, 9 May 2026 22:30:03 +0800 Subject: [PATCH] fix: format placeholder in remove_empty_directories debug log 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 38f5698067..31374c5960 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(