nit(backend/copilot): convert f-string to %-logging in _format_sdk_content_blocks

The unknown block type warning was using an f-string which forces string
interpolation even when the log level is disabled. Convert to %-style lazy
formatting for consistency with the rest of the logging in the module.
This commit is contained in:
Zamil Majdy
2026-04-16 14:52:47 +07:00
parent 8b9b2e0721
commit 44e070cf69

View File

@@ -1101,8 +1101,9 @@ def _format_sdk_content_blocks(blocks: list) -> list[dict[str, Any]]:
result.append(block)
else:
logger.warning(
f"[SDK] Unknown content block type: {type(block).__name__}. "
f"This may indicate a new SDK version with additional block types."
"[SDK] Unknown content block type: %s."
" This may indicate a new SDK version with additional block types.",
type(block).__name__,
)
return result