You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2022/04/12 02:27:07 UTC

[GitHub] [openwhisk] mango009 opened a new issue, #5211: Where is the output for console.log of an action?

mango009 opened a new issue, #5211:
URL: https://github.com/apache/openwhisk/issues/5211

   Hi, sorry but I cannot find solution on the web for this problem. I'm using console.log in my node.js action as follows:
   
   ```
   async function main(params) {
     console.log('incoming request params:', params);
     return {
       headers: {
         'Content-Type': 'application/json'
       },
       body: params,
       statusCode: 200
     }
   }
   ```
   
   But I cannot find the output of `console.log` if I use `wsk -I activation logs <ID>` (even when the function failed). It always comes back as blank.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] style95 commented on issue #5211: Where is the output for console.log of an action?

Posted by GitBox <gi...@apache.org>.
style95 commented on issue #5211:
URL: https://github.com/apache/openwhisk/issues/5211#issuecomment-1096330530

   Are you using intra-concurrency?
   If yes, currently logs are not supported.
   https://github.com/apache/openwhisk/blob/master/docs/concurrency.md
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [openwhisk] mango009 commented on issue #5211: Where is the output for console.log of an action?

Posted by GitBox <gi...@apache.org>.
mango009 commented on issue #5211:
URL: https://github.com/apache/openwhisk/issues/5211#issuecomment-1097227679

   No I'm not using intra-concurrency. I didn't specify the `-c` flag when creating the action so the concurrency is default to 1


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@openwhisk.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org