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_r137888040
 
 

 ##########
 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:
   So the interesting thing i found here, is that the Debug (and my code) both 
flush the request body, so whenever you either pass in verbose or debug, they 
flush the body and so send a request with no body, which causes the command to 
fail.  Going to fix this.  Just thought I'd put this in here since the issue is 
bigger than initially expected.
   
 
----------------------------------------------------------------
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

Reply via email to