Skip to content

Commit a4de42d

Browse files
committed
Remove unnecessary log statements in error handling
1 parent 9f22056 commit a4de42d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

response/error.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,16 +61,12 @@ func HandleAPIErrorResponse(resp *http.Response, log logger.Logger) *APIError {
6161
switch mimeType {
6262
case "application/json":
6363
parseJSONResponse(bodyBytes, apiError, log, resp)
64-
logError(log, apiError, "json_error_detected", resp)
6564
case "application/xml", "text/xml":
6665
parseXMLResponse(bodyBytes, apiError, log, resp)
67-
logError(log, apiError, "xml_error_detected", resp)
6866
case "text/html":
6967
parseHTMLResponse(bodyBytes, apiError, log, resp)
70-
logError(log, apiError, "html_error_detected", resp)
7168
case "text/plain":
7269
parseTextResponse(bodyBytes, apiError, log, resp)
73-
logError(log, apiError, "text_error_detected", resp)
7470
default:
7571
apiError.Raw = string(bodyBytes)
7672
apiError.Message = "Unknown content type error"

0 commit comments

Comments
 (0)