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
@@ -87,6 +87,7 @@ func (c *client) authorize(ctx context.Context) (string, error) {
}
func (c *client) makeRequest(req *http.Request, response interface{}) error {
log.Trace(req.Context(), fmt.Sprintf("Sending Spotify %s request", req.Method), "url", req.URL)
resp, err := c.hc.Do(req)
if err != nil {
return err