fix(github-copilot): use lazy logging for rejected API bases

This commit is contained in:
codgician 2026-09-26 15:29:17 +08:00
parent 2e3bf10647
commit e9934f5404
No known key found for this signature in database

View file

@ -111,7 +111,8 @@ class Authenticator:
if _is_secure_api_base(candidate):
return candidate
verbose_logger.warning(
f"Ignoring {source} because it must be an HTTPS URL without credentials, query, or fragment"
"Ignoring %s because it must be an HTTPS URL without credentials, query, or fragment",
source,
)
return None