(chatID uuid.UUID, ancestorIDs []uuid.UUID)
| 72 | } |
| 73 | |
| 74 | func chatFields(chatID uuid.UUID, ancestorIDs []uuid.UUID) []slog.Field { |
| 75 | fields := []slog.Field{slog.F("chat_id", chatID.String())} |
| 76 | if len(ancestorIDs) == 0 { |
| 77 | return fields |
| 78 | } |
| 79 | |
| 80 | ancestors := make([]string, 0, len(ancestorIDs)) |
| 81 | for _, id := range ancestorIDs { |
| 82 | ancestors = append(ancestors, id.String()) |
| 83 | } |
| 84 | return append(fields, slog.F("ancestor_chat_ids", ancestors)) |
| 85 | } |
no test coverage detected