Add exc_info=True to OAuth error logging and endpoint-level catch in google_oauth

Agent-Logs-Url: https://github.com/christianlouis/InboxConverge/sessions/8d0fb51a-ede5-4bb7-aad8-3d29a0d3d7d3

Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-05-03 17:35:49 +00:00
committed by GitHub
parent 0026afe131
commit e98c81cce4
3 changed files with 96 additions and 71 deletions
+5 -1
View File
@@ -142,7 +142,11 @@ class OAuthService:
except HTTPException:
raise
except Exception as e:
logger.error("OAuth [Google sign-in]: unexpected error: %s", e)
logger.error(
"OAuth [Google sign-in]: unexpected error: %s",
e,
exc_info=True,
)
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail="OAuth authentication failed",