fix: format placeholder in remove_empty_directories debug log (#23147)
Some checks failed
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled

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.
This commit is contained in:
ryzendigo 2026-05-09 22:35:38 +08:00 committed by GitHub
parent 4ff7ab96dc
commit 0d4f1ec369
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -94,7 +94,7 @@ def remove_empty_directories(root: Path, paths: Iterable[Path]) -> None:
paths = parents paths = parents
logger.debug("Removed {count} empty directories") logger.debug(f"Removed {count} empty directories")
def sync_recordings( def sync_recordings(