jessealva 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_r137367729
##########
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:
Good point, looks like the debug statement is now an empty JSON string. Let
me fix that.
----------------------------------------------------------------
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