When running GCP Cloud Function, I don't see any logs in the console. I do see only function has been updated logs but I expect to see also function invocation logs and my function internal logs.
I tied several options and all end up with the same outcome:
- Python3.8 - gen1
- Python3.8 - gen1
- Node - gen1
- Node - gen2
For all the gen2, there were no logs also at CloudRun log console.
The code for node it is simply the default with console.info:
const functions = require('@google-cloud/functions-framework');
functions.http('helloHttp', (req, res) => {
console.info("hello from gen2")
res.send(`Hello ${req.query.name || req.body.name || 'World'}!`);
});
There are only logs regarding the Update and not from the function itself.
I see some posts about this issue has been resolved, but it I face it again.
Thanks all