Skip to content

Commit

Permalink
chore(api): log more
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Apr 18, 2024
1 parent 9cfb1d2 commit d5c918d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/api/badge.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d5c918d

Please sign in to comment.