Minor change to log output

master
Ubuntu 5 years ago
parent d85725b45a
commit e1bba3a0d5
  1. 2
      customerdb/client.go

@ -89,7 +89,7 @@ func (s *CustomerDBService) PutProduct(p types.Product) (err error) {
if err == nil { if err == nil {
if (resp.StatusCode != http.StatusCreated) && (resp.StatusCode != http.StatusAccepted) { if (resp.StatusCode != http.StatusCreated) && (resp.StatusCode != http.StatusAccepted) {
l.Warning.Printf("Unexpected response Creating new Reseller record - Response Status: %v\n", resp.Status) l.Warning.Printf("Unexpected response Creating new Product record - Response Status: %v\n", resp.Status)
body, _ := ioutil.ReadAll(resp.Body) body, _ := ioutil.ReadAll(resp.Body)
l.Debug.Printf("Response Body: %v\n", string(body)) l.Debug.Printf("Response Body: %v\n", string(body))
err = errors.New("Unexpected response posting product to customerdb") err = errors.New("Unexpected response posting product to customerdb")

Loading…
Cancel
Save