feat: add logging for endpoint requests and responses in client and utils

This commit is contained in:
zuoban
2025-08-12 14:33:51 +08:00
parent f849a2f5ea
commit 1f7fab5c0b
2 changed files with 6 additions and 5 deletions

View File

@@ -144,6 +144,7 @@ func (c *Client) ListVoices(ctx context.Context, locale string) ([]models.Voice,
}
url := fmt.Sprintf(voicesEndpoint, endpoint["r"])
log.Println("ListVoices, endpoint:", endpoint)
req, err := http.NewRequestWithContext(ctx, http.MethodGet, url, nil)
if err != nil {
return nil, err