From d5c918d4d43d7895e28ad9da86c636bcb2856356 Mon Sep 17 00:00:00 2001 From: Aleksandr Razumov Date: Thu, 18 Apr 2024 12:05:03 +0300 Subject: [PATCH] chore(api): log more --- internal/api/badge.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/internal/api/badge.go b/internal/api/badge.go index 42b6c33..698aabc 100644 --- a/internal/api/badge.go +++ b/internal/api/badge.go @@ -50,6 +50,11 @@ func (s Server) GetTelegramBadge(ctx context.Context, params oas.GetTelegramBadg if err != nil { return nil, errors.Wrap(err, "get chat") } + zctx.From(ctx).Info("Got chat", + zap.Int("chats", len(fullChat.Chats)), + zap.Int64("id", fullChat.FullChat.(*tg.ChatFull).ID), + zap.String("about", fullChat.FullChat.(*tg.ChatFull).About), + ) for _, chat := range fullChat.Chats { switch c := chat.(type) { case *tg.Chat: