Add logging for SSO user creation

Fixes #22
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Matthew Knight 2026-02-17 16:04:08 -08:00
parent e3ef03ddcd
commit b6c15e4d5c
No known key found for this signature in database
1 changed files with 4 additions and 0 deletions

View File

@ -98,7 +98,11 @@ func (h *SSOHandler) HandleSSO(c *gin.Context) {
c.String(http.StatusInternalServerError, "failed to create user") c.String(http.StatusInternalServerError, "failed to create user")
return return
} }
} else {
log.Info().Str("email", email).Str("name", name).Str("repo", slug).Msg("SSO: created new user")
} }
} else {
log.Info().Str("email", email).Str("repo", slug).Msg("SSO: existing user logged in")
} }
// Update existing user if needed // Update existing user if needed