add log for the HTTP request
This commit is contained in:
parent
5c778bfe1c
commit
2834f6a7ce
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ func registerDevicesFromOrder(req *pb.PlaceOrderRequest, order *pb.OrderResult,
|
||||||
httpRequest.Header.Set("Context-Type", "application/json")
|
httpRequest.Header.Set("Context-Type", "application/json")
|
||||||
httpClient := &http.Client{}
|
httpClient := &http.Client{}
|
||||||
|
|
||||||
|
log.Infof("Device registration, http request: %+v", httpRequest)
|
||||||
|
|
||||||
httpResponse, httpResponseError := httpClient.Do(httpRequest)
|
httpResponse, httpResponseError := httpClient.Do(httpRequest)
|
||||||
if httpResponseError != nil {
|
if httpResponseError != nil {
|
||||||
log.Errorf("Device registration, http request preparation failed, err: %+v", httpResponseError)
|
log.Errorf("Device registration, http request preparation failed, err: %+v", httpResponseError)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue