This commit is contained in:
Alexzhu 2026-04-24 18:23:47 -05:00 committed by GitHub
commit a81b12fc25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View file

@ -252,7 +252,7 @@ def load_code_assist(
cloudaicompanion_project=project_id,
)
last_err = exc
logger.warning("loadCodeAssist failed on %s: %s", endpoint, exc)
logger.warning("loadCodeAssist failed on %s: %s", endpoint, exc, exc_info=True)
continue
if last_err:
raise last_err
@ -327,7 +327,7 @@ def onboard_user(
try:
poll_resp = _post_json(poll_url, {}, access_token, user_agent_model=user_agent_model)
except CodeAssistError as exc:
logger.warning("Onboarding poll attempt %d failed: %s", attempt + 1, exc)
logger.warning("Onboarding poll attempt %d failed: %s", attempt + 1, exc, exc_info=True)
continue
if poll_resp.get("done"):
return poll_resp

View file

@ -475,7 +475,7 @@ def load_credentials() -> Optional[GoogleCredentials]:
raw = path.read_text(encoding="utf-8")
data = json.loads(raw)
except (json.JSONDecodeError, OSError, IOError) as exc:
logger.warning("Failed to read Google OAuth credentials at %s: %s", path, exc)
logger.warning("Failed to read Google OAuth credentials at %s: %s", path, exc, exc_info=True)
return None
if not isinstance(data, dict):
return None
@ -518,7 +518,7 @@ def clear_credentials() -> None:
except FileNotFoundError:
pass
except OSError as exc:
logger.warning("Failed to remove Google OAuth credentials at %s: %s", path, exc)
logger.warning("Failed to remove Google OAuth credentials at %s: %s", path, exc, exc_info=True)
# =============================================================================