tmp: debug-log telegram language_code on contour (REVERT before merge)
CI / changes (pull_request) Successful in 2s
CI / unit (pull_request) Successful in 10s
CI / integration (pull_request) Successful in 15s
CI / ui (pull_request) Successful in 55s
CI / gate (pull_request) Successful in 0s
CI / deploy (pull_request) Successful in 1m14s

Temporary: traces the language_code Telegram sends + the seeded variant_preferences, to settle why a new account lands in Russian despite an English interface. Test contour only; force-pushed away before merge so it never reaches master.
This commit is contained in:
Ilia Denisov
2026-06-23 22:22:22 +02:00
parent 03dfc29a54
commit 33064d22a3
+9
View File
@@ -46,6 +46,15 @@ func (s *Server) handleTelegramAuth(c *gin.Context) {
s.abortErr(c, err) s.abortErr(c, err)
return return
} }
// TEMP DEBUG (revert before merge): trace the language_code Telegram actually sent and
// what we seeded, to settle the "ru interface" question on the test contour.
s.log.Info("telegram auth debug",
zap.String("external_id", req.ExternalID),
zap.String("language_code", req.LanguageCode),
zap.String("username", req.Username),
zap.String("start_param", req.StartParam),
zap.Bool("created", created),
zap.Strings("variant_preferences", acc.VariantPreferences))
if created { if created {
// First registration: re-evaluate moderated-chat write access, so a user who // First registration: re-evaluate moderated-chat write access, so a user who
// joined the chat before registering is granted on the spot (no chat_member // joined the chat before registering is granted on the spot (no chat_member