openwhisk
openwhisk copied to clipboard
Where is the output for console.log of an action?
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.
Are you using intra-concurrency? If yes, currently logs are not supported. https://github.com/apache/openwhisk/blob/master/docs/concurrency.md
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