Defer debug log formatting in static_with_params()

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
Jeremy Stretch 2026-08-27 11:01:08 -04:00
parent f91e0e9fb3
commit db859c11b7
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@ def static_with_params(path, **params):
# the signature and the request would be rejected by the storage backend.
if signature_params := [p for p in existing_params if p.lower() in SIGNED_URL_PARAMS]:
logger.debug(
f"Static URL '{static_url}' is signed ({', '.join(signature_params)}); "
f"omitting parameters {tuple(params)}"
"Static URL '%s' is signed (%s); omitting parameters %s",
static_url, ', '.join(signature_params), tuple(params)
)
return static_url