added config to allow client to see debug log

This commit is contained in:
Guo Huang 2016-04-20 12:54:05 -07:00
parent 287f3ff20b
commit 10c7c41e82
2 changed files with 8 additions and 0 deletions

View File

@ -50,6 +50,10 @@ func (c *ApiClient) CallApi(path string, method string,
queryParams map[string]string,
formParams map[string]string) (*resty.Response, error) {
//set debug flag
configuration := NewConfiguration()
resty.SetDebug(configuration.Debug)
request := prepareRequest(postBody, headerParams, queryParams, formParams)
switch strings.ToUpper(method) {

View File

@ -50,6 +50,10 @@ func (c *ApiClient) CallApi(path string, method string,
queryParams map[string]string,
formParams map[string]string) (*resty.Response, error) {
//set debug flag
configuration := NewConfiguration()
resty.SetDebug(configuration.Debug)
request := prepareRequest(postBody, headerParams, queryParams, formParams)
switch strings.ToUpper(method) {