Begin work on debugging user behavior in early setup

This commit is contained in:
Eli Ribble 2026-01-06 14:46:31 +00:00
parent 655f26e218
commit 97ea4ad3bb
5 changed files with 14 additions and 10 deletions

View file

@ -247,9 +247,11 @@ func getVectorTiles(w http.ResponseWriter, r *http.Request, u *models.User) {
log.Info().Str("org_id", org_id).Str("tileset_id", tileset_id).Str("zoom", zoom).Str("x", x).Str("y", y).Str("format", format).Msg("Get vector tiles")
}
// Respond with an error that is visible to the user
func respondError(w http.ResponseWriter, m string, e error, s int) {
log.Warn().Int("status", s).Err(e).Msg("Responding with an error")
http.Error(w, m, http.StatusBadRequest)
log.Warn().Int("status", s).Err(e).Str("user message", m).Msg("Responding with an error")
http.Error(w, m, s)
}
func postSignin(w http.ResponseWriter, r *http.Request) {