Fix error logging
This commit is contained in:
parent
73053506a9
commit
9970de6104
@ -122,7 +122,7 @@ func (httpu *HTTPUClient) Do(req *http.Request, timeout time.Duration, numSends
|
|||||||
// Parse response.
|
// Parse response.
|
||||||
response, err := http.ReadResponse(bufio.NewReader(bytes.NewBuffer(responseBytes[:n])), req)
|
response, err := http.ReadResponse(bufio.NewReader(bytes.NewBuffer(responseBytes[:n])), req)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Print("httpu: error while parsing response: %v", err)
|
log.Printf("httpu: error while parsing response: %v", err)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user