Skip to content

Commit d65fe13

Browse files
authored
Merge pull request #202 from deploymenttheory/dev
chore: Update error logging messages in download and multipart requests
2 parents c96c66a + faab0a2 commit d65fe13

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

httpclient/downloadrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ func (c *Client) DoDownloadRequest(method, endpoint string, out io.Writer) (*htt
6969
// Execute the request
7070
resp, err := c.httpClient.Do(req)
7171
if err != nil {
72-
log.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
72+
log.Error("Failed to send download request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
7373
return nil, err
7474
}
7575

httpclient/multipartrequest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (c *Client) DoMultipartRequest(method, endpoint string, fields map[string]s
8181
// Execute the request
8282
resp, err := c.httpClient.Do(req)
8383
if err != nil {
84-
log.Error("Failed to send request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
84+
log.Error("Failed to send multipart request", zap.String("method", method), zap.String("endpoint", endpoint), zap.Error(err))
8585
return nil, err
8686
}
8787

0 commit comments

Comments
 (0)