dubeejw commented on a change in pull request #2675: Added changes for classes
and variables casing to be get exported and can be used in other places
URL:
https://github.com/apache/incubator-openwhisk/pull/2675#discussion_r137336971
##########
File path: tools/cli/go-whisk/whisk/client.go
##########
@@ -267,12 +279,13 @@ func (c *Client) Do(req *http.Request, v interface{},
ExitWithErrorOnTimeout boo
if req.Body != nil {
fmt.Println("Req Body")
if !IsDebug() {
- if truncatedBody, req.Body, err = bodyTruncator(req.Body); err
!= nil {
+ if truncatedBody, req.Body, err = BodyTruncator(req.Body); err
!= nil {
return nil, err
}
- fmt.Println(truncatedBody)
+ fmt.Println(ObfuscateText(truncatedBody, obfuscateArr))
} else {
- fmt.Println(req.Body)
+ data, _ := ioutil.ReadAll(req.Body)
Review comment:
Does the `Debug()` all below still work with this change?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services