starpit commented on issue #120: add `debug` calls?
URL: 
https://github.com/apache/incubator-openwhisk-client-js/issues/120#issuecomment-400281123
 
 
   yes. i think the main missing pieces from needle are the body of the request 
and of the response. needle also includes too much information generally 
(though sometimes the extra info helps). finally, if a program is using needle 
for more than one purpose, having the ability to log just our requests is 
helpful.
   
   e.g. too much info, and yet too little:
   
   ```
     needle Got response 200 { 'x-backside-transport': 'OK OK',
     connection: 'close',
     'transfer-encoding': 'chunked',
     server: 'nginx',
     date: 'Tue, 26 Jun 2018 11:53:38 GMT',
     'content-type': 'application/json',
     'x-request-id': '...',
     'access-control-allow-origin': '*',
     'access-control-allow-headers': 'Authorization, Content-Type',
     ibm_cloud_functions: 'OpenWhisk',
     'x-global-transaction-id': '...',
     'set-cookie': 
      [ 'DPJSESSIONID=PBC5YS:...; Path=/; Domain=.openwhisk.ng.bluemix.net; 
Secure; HttpOnly' ] }
   ```

----------------------------------------------------------------
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