Fix error logging

This commit is contained in:
Aman Gupta 2017-08-02 12:30:54 -07:00 committed by Huin
parent 73053506a9
commit 9970de6104

View File

@ -122,7 +122,7 @@ func (httpu *HTTPUClient) Do(req *http.Request, timeout time.Duration, numSends
// Parse response.
response, err := http.ReadResponse(bufio.NewReader(bytes.NewBuffer(responseBytes[:n])), req)
if err != nil {
log.Print("httpu: error while parsing response: %v", err)
log.Printf("httpu: error while parsing response: %v", err)
continue
}