Add trace logs to calls to external services

This commit is contained in:
Deluan
2023-01-31 09:37:09 -05:00
parent b6fcfa9fc8
commit 712d8f9fcc
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -191,6 +191,7 @@ func (c *client) makeRequest(ctx context.Context, method string, params url.Valu
req, _ := http.NewRequestWithContext(ctx, method, apiBaseUrl, nil)
req.URL.RawQuery = params.Encode()
log.Trace(ctx, fmt.Sprintf("Sending Last.fm %s request", req.Method), "url", req.URL)
resp, err := c.hc.Do(req)
if err != nil {
return nil, err