Explorar o código

Defer debug log formatting in static_with_params()

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Jeremy Stretch hai 1 día
pai
achega
db859c11b7
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      netbox/utilities/templatetags/builtins/tags.py

+ 2 - 2
netbox/utilities/templatetags/builtins/tags.py

@@ -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