fix(antigravity): mask project_id in logs

This commit is contained in:
sususu98
2026-05-07 16:26:54 +08:00
parent 33130f18d2
commit 809feb1e86
3 changed files with 5 additions and 5 deletions
@@ -2052,7 +2052,7 @@ func (h *Handler) RequestAntigravityToken(c *gin.Context) {
log.Warnf("antigravity: failed to fetch project ID: %v", errProject)
} else {
projectID = fetchedProjectID
log.Infof("antigravity: obtained project ID %s", projectID)
log.Infof("antigravity: obtained project ID %s", util.HideAPIKey(projectID))
}
}
@@ -2096,7 +2096,7 @@ func (h *Handler) RequestAntigravityToken(c *gin.Context) {
CompleteOAuthSessionsByProvider("antigravity")
fmt.Printf("Authentication successful! Token saved to %s\n", savedPath)
if projectID != "" {
fmt.Printf("Using GCP project: %s\n", projectID)
fmt.Printf("Using GCP project: %s\n", util.HideAPIKey(projectID))
}
fmt.Println("You can now use Antigravity services through this CLI")
}()