Change to fix logging
This commit is contained in:
@@ -254,7 +254,7 @@ func (h *HTTPExtender) send(action string, args interface{}, result interface{})
|
|||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if resp.StatusCode != http.StatusOK {
|
if resp.StatusCode != http.StatusOK {
|
||||||
return fmt.Errorf("Failed %v with extender at URL %v, code %v", action, h.extenderURL, resp.StatusCode)
|
return fmt.Errorf("Failed %v with extender at URL %v, code %v", action, url, resp.StatusCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
return json.NewDecoder(resp.Body).Decode(result)
|
return json.NewDecoder(resp.Body).Decode(result)
|
||||||
|
Reference in New Issue
Block a user