|
|
|
@ -89,7 +89,7 @@ func (s *CustomerDBService) PutProduct(p types.Product) (err error) { |
|
|
|
|
|
|
|
|
|
if err == nil { |
|
|
|
|
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) |
|
|
|
|
l.Debug.Printf("Response Body: %v\n", string(body)) |
|
|
|
|
err = errors.New("Unexpected response posting product to customerdb") |
|
|
|
|