Skip to content

Commit

Permalink
Merge pull request #202 from deploymenttheory/dev
Browse files Browse the repository at this point in the history
chore: Update error logging messages in download and multipart requests
  • Loading branch information
ShocOne authored May 28, 2024
2 parents c96c66a + faab0a2 commit d65fe13
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion httpclient/downloadrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ func (c *Client) DoDownloadRequest(method, endpoint string, out io.Writer) (*htt
// Execute the request
resp, err := c.httpClient.Do(req)
if err != nil {
log.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
log.Error("Failed to send download request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
return nil, err
}

Expand Down
2 changes: 1 addition & 1 deletion httpclient/multipartrequest.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func (c *Client) DoMultipartRequest(method, endpoint string, fields map[string]s
// Execute the request
resp, err := c.httpClient.Do(req)
if err != nil {
log.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
log.Error("Failed to send multipart request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
return nil, err
}

Expand Down

0 comments on commit d65fe13

Please sign in to comment.