add debug log
This commit is contained in:
		
							parent
							
								
									bc3db15466
								
							
						
					
					
						commit
						f9046088ea
					
				| 
						 | 
					@ -121,7 +121,7 @@ func (c *Client) CreateOrder(p CreateOrderPayload) (*CreateOrderResponseDecoded,
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
	info, err := res.DecodeCreateOrderSuccess()
 | 
						info, err := res.DecodeCreateOrderSuccess()
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		log.Println("globalcare.Client.CreateOrder - DecodeCreateOrderSuccess err:", err)
 | 
							log.Println("globalcare.Client.CreateOrder - DecodeCreateOrderSuccess err:", err, string(msg.Data))
 | 
				
			||||||
		return nil, err
 | 
							return nil, err
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -10,19 +10,19 @@ type CommonResponse struct {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// DecodeCreateOrderSuccess ...
 | 
					// DecodeCreateOrderSuccess ...
 | 
				
			||||||
func (r *CommonResponse) DecodeCreateOrderSuccess() (res CreateOrderResponseDecoded, err error) {
 | 
					func (r *CommonResponse) DecodeCreateOrderSuccess() (res CreateOrderResponseDecoded, err error) {
 | 
				
			||||||
	err = r.Decode(res)
 | 
						err = r.Decode(&res)
 | 
				
			||||||
	return res, err
 | 
						return res, err
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// DecodeGetOrderSuccess ...
 | 
					// DecodeGetOrderSuccess ...
 | 
				
			||||||
func (r *CommonResponse) DecodeGetOrderSuccess() (res GetOrderResponseDecoded, err error) {
 | 
					func (r *CommonResponse) DecodeGetOrderSuccess() (res GetOrderResponseDecoded, err error) {
 | 
				
			||||||
	err = r.Decode(res)
 | 
						err = r.Decode(&res)
 | 
				
			||||||
	return res, err
 | 
						return res, err
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// DecodeError ...
 | 
					// DecodeError ...
 | 
				
			||||||
func (r *CommonResponse) DecodeError() (res ResponseError, err error) {
 | 
					func (r *CommonResponse) DecodeError() (res ResponseError, err error) {
 | 
				
			||||||
	err = r.Decode(res)
 | 
						err = r.Decode(&res)
 | 
				
			||||||
	return res, err
 | 
						return res, err
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue